NcmMpsfTrigInt

NcmMpsfTrigInt — Multiple precision sin integral implementation.

Functions

void ncm_mpsf_sin_int_mpfr ()
gdouble ncm_sf_sin_int ()

Description

Implementation of multiple precision sine integral using the GNU MPFR library. This implementation employs binary splitting to compute the integral utilizing the Taylor series and asymptotic expansion methods.

Functions

ncm_mpsf_sin_int_mpfr ()

void
ncm_mpsf_sin_int_mpfr (mpq_t q,
                       mpfr_ptr res,
                       mp_rnd_t rnd);

Computes the sine integral $$\mathrm{Si}(x) = \int_0^x \frac{\sin x'}{x'}\mathrm{d}x.$$

[skip]

Parameters

q

argument as a rational number $x = q$

 

res

mpfr variable containing the result $\mathrm{Si}(x)$

 

rnd

mpfr rounding mode

 

ncm_sf_sin_int ()

gdouble
ncm_sf_sin_int (gdouble x);

Computes the sine integral $$\mathrm{Si}(x) = \int_0^x \frac{\sin x'}{x'}\mathrm{d}x.$$

Parameters

x

value of the argument $x$

 

Returns

the value of $\mathrm{Si}(x)$.