NcmMpsfTrigInt

NcmMpsfTrigInt — Multiple precision sin integral implementation.

Description

FIXME

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)$.