Skip to main content

fresnel

Function fresnel 

Source
pub fn fresnel(t: f64) -> (f64, f64)
Expand description

Evaluate the Fresnel integrals C(t) and S(t) defined as: C(t) = integral_0^t cos(pi/2 * u^2) du S(t) = integral_0^t sin(pi/2 * u^2) du

Uses a power-series expansion, which converges well for moderate |t|.