Fresnel integrals

Computes fresnel integrals with 1*10^-9 accuracy.

You are now following this Submission

MEX file to compute Fresnel integrals.

[C, S] = fcs(x) returns Fresnel integrals C ans S for argument x, x must be double and real.

F = fcs(x) returns complex F = C+i*S

Algorithm:
This function uses an improved method for computing Fresnel integrals with an error of less then 1x10^-9, described in:

Klaus D. Mielenz, Computation of Fresnel Integrals. II
J. Res. Natl. Inst. Stand. Technol. 105, 589 (2000), pp 589-590

Notes for Linux implementation
Compile this with:
mex -O fcs.c

Notes for Windows implementation
Compile this with:
mex -O fcs.c -DWIN32

Cite As

Peter Volegov (2026). Fresnel integrals (https://www.mathworks.com/matlabcentral/fileexchange/6580-fresnel-integrals), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: FresnelS and FresnelC, Fresnel Integral

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0