![]() |
Fresnel integrals C(x) and S(x) are defined as C(x) = integral(cos(pi t 2/2)dt,0,x) and S(x) = integral(sin(pi t 2/2)dt,0,x).
Some sources don't use multiplier before t 2 (in this case, the integral is multiplied by the scaling coefficient), so you should watch closely what integral is being referred to.
FresnelIntegral subroutine calculates C(x) and S(x) using piecewise rational approximation.
This article is intended for personal use only.
C# source.
C++ source.
C++ source. MPFR/GMP is used.
GMP source is available from gmplib.org. MPFR source is available from www.mpfr.org.
FreePascal version.
Delphi version.
VB.NET version.
VBA version.
Python version (CPython and IronPython are supported).
|
ALGLIB® - numerical analysis library, 1999-2012. |