Skip to content

cosint

specfun · scripts/specfun/cosint.m

: y = cosint (x)

Cosine integral Ci (x) = gamma + log (x) + integral_0^x (cos (t) - 1) / t dt for real or complex x. The principal branch of the logarithm is used, so negative real arguments give complex results.

Small arguments use the power series, larger ones the relation to the exponential integral expint.