Main       Commercial support       FAQ       Forum       Contact Us

Fresnel integrals C(x) and S(x)

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.

Download ALGLIB

C#

C# source.

Downloads page

 

C++

C++ source.

Downloads page

 

C++, multiple precision arithmetic

C++ source. MPFR/GMP is used.

GMP source is available from gmplib.org. MPFR source is available from www.mpfr.org.

Downloads page

 

FreePascal

FreePascal source.

Downloads page

 

Delphi

Delphi source.

Downloads page

 

Visual Basic

VBA source.

Downloads page

 

 

ALGLIB project, 1999-2010