Top | ![]() |
![]() |
![]() |
![]() |
Functions
Types and Values
#define | NCM_INTEGRAL1D_DEFAULT_PARTITION |
#define | NCM_INTEGRAL1D_DEFAULT_ALG |
#define | NCM_INTEGRAL1D_DEFAULT_RELTOL |
#define | NCM_INTEGRAL1D_DEFAULT_ABSTOL |
Functions
ncm_integral1d_new ()
NcmIntegral1d *
ncm_integral1d_new (NcmIntegral1dF F
);
Creates a new NcmIntegral1d object for the integrand F
.
ncm_integral1d_new_full ()
NcmIntegral1d * ncm_integral1d_new_full (NcmIntegral1dF F
,gdouble reltol
,gdouble abstol
,guint partition
,guint rule
);
Creates a new NcmIntegral1d object for the integrand F
.
ncm_integral1d_ref ()
NcmIntegral1d *
ncm_integral1d_ref (NcmIntegral1d *int1d
);
Increases the reference count of int1d
by one.
ncm_integral1d_free ()
void
ncm_integral1d_free (NcmIntegral1d *int1d
);
Decreases the reference count of int1d
by one.
ncm_integral1d_clear ()
void
ncm_integral1d_clear (NcmIntegral1d **int1d
);
If *int1d
is different from NULL, decreases the reference
count of *int1d
by one and sets *int1d
to NULL.
ncm_integral1d_set_partition ()
void ncm_integral1d_set_partition (NcmIntegral1d *int1d
,guint partition
);
Sets the max number of subintervals to partition
.
ncm_integral1d_set_rule ()
void ncm_integral1d_set_rule (NcmIntegral1d *int1d
,guint rule
);
Sets the Gauss-Kronrod rule
to use.
ncm_integral1d_set_reltol ()
void ncm_integral1d_set_reltol (NcmIntegral1d *int1d
,gdouble reltol
);
Sets the relative tolerance reltol
to use.
ncm_integral1d_set_abstol ()
void ncm_integral1d_set_abstol (NcmIntegral1d *int1d
,gdouble abstol
);
Sets the absolute tolerance reltol
to use.
ncm_integral1d_eval ()
gdouble ncm_integral1d_eval (NcmIntegral1d *int1d
,gdouble xi
,gdouble xf
,gpointer userdata
,gdouble *err
);
Evaluated the integral $I_F(x_i, x_f) = \int_{x_i}^{x_f}F(x)\mathrm{d}x$.
ncm_integral1d_eval_gauss_hermite_p ()
gdouble ncm_integral1d_eval_gauss_hermite_p (NcmIntegral1d *int1d
,gpointer userdata
,gdouble *err
);
Evaluated the integral $H^p_F = \int_{0}^{\infty}e^{-x^2/2}F(x)\mathrm{d}x$.
ncm_integral1d_eval_gauss_hermite ()
gdouble ncm_integral1d_eval_gauss_hermite (NcmIntegral1d *int1d
,gpointer userdata
,gdouble *err
);
Evaluated the integral $H_F = \int_{-\infty}^{\infty}e^{-x^2/2}F(x)\mathrm{d}x$.
ncm_integral1d_eval_gauss_hermite_r_p ()
gdouble ncm_integral1d_eval_gauss_hermite_r_p (NcmIntegral1d *int1d
,gdouble r
,gpointer userdata
,gdouble *err
);
Evaluated the integral $H^p_F = \int_{0}^{\infty}e^{-x^2r^2/2}F(x)\mathrm{d}x$.
ncm_integral1d_eval_gauss_hermite_mur ()
gdouble ncm_integral1d_eval_gauss_hermite_mur (NcmIntegral1d *int1d
,gdouble r
,gdouble mu
,gpointer userdata
,gdouble *err
);
Evaluated the integral $H_F = \int_{-\infty}^{\infty}e^{-(x-\mu)^2r^2/2}F(x)\mathrm{d}x$.
ncm_integral1d_eval_gauss_laguerre ()
gdouble ncm_integral1d_eval_gauss_laguerre (NcmIntegral1d *int1d
,gpointer userdata
,gdouble *err
);
Evaluated the integral $L_F = \int_{0}^{\infty}e^{-x}F(x)\mathrm{d}x$.
ncm_integral1d_eval_gauss_laguerre_r ()
gdouble ncm_integral1d_eval_gauss_laguerre_r (NcmIntegral1d *int1d
,gdouble r
,gpointer userdata
,gdouble *err
);
Evaluated the integral $L_F = \int_{0}^{\infty}e^{-xr}F(x)\mathrm{d}x$.
Property Details
The “abstol”
property
“abstol” gdouble
Integral absolute tolerance.
Flags: Read / Write / Construct
Allowed values: >= 0
Default value: 0
The “integrand”
property
“integrand” gpointer
Integrand function pointer.
Flags: Read / Write / Construct Only
The “partition”
property
“partition” guint
Integral maximum partititon.
Flags: Read / Write / Construct
Allowed values: >= 10
Default value: 100000
The “reltol”
property
“reltol” gdouble
Integral relative tolerance.
Flags: Read / Write / Construct
Allowed values: [0,1]
Default value: 1e-13
The “rule”
property
“rule” guint
Integration rule.
Flags: Read / Write / Construct
Allowed values: [1,6]
Default value: 6