Skip to main content

cosine_integral

Function cosine_integral 

Source
pub fn cosine_integral(x: f64) -> f64
Expand description

The cosine integral Ci(x) = γ + ln x + ∫₀ˣ (cos t − 1)/t dt for x > 0.

Returns -inf at 0 and NaN for negative x (where Ci is complex).