Recover Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttp://yahoo.com/
get GPL
COST (GBP)
this unit 0.37
sub units 0.50
add licence
0
MathsSpecial

fresnel sin

Fresnel sin integral.
Controller: CodeCogs

buy now get GPL add to cart

Dependents

Info

Interface

C++
Excel

Fresnel Sin

 
doublefresnel_sindoublex )
Evaluates the sine Fresnel integral

Graph is not currently available

The integral is evaluated by a power series for x < 1.
For x >= 1 auxiliary functions f(x) and g(x) are employed such that

Accuracy:

<pre> Relative error. domain # trials peak rms 0, 10 10000 2.0e-15 3.2e-16 </pre>

Parameters

xmain input argument

Authors

Cephes Math Library Release 2.8: June, 2000 Copyright 1984, 1987, 1989, 2000 by Stephen L. Moshier
Documentation Nick Owens
Source Code

Source code is available when you agree to a GP Licence or buy a Commercial Licence.

Not a member, then Register with CodeCogs. Already a Member, then Login.


 

Page Comments

gennarakis\′s Photo
26 Nov 10, 5:44AM
how can i add this code to excel so i can compute the fresnel integrals for multiple values?
Rupert Rawnsley\′s Photo
3 Jun 09, 3:41PM
Implementation error
I think the sign for this function may be inverted. Compare the graph with the wiki page: http://en.wikipedia.org/wiki/Fresnel_integral

In the code, the sign variable is being calculated incorrectly. Replacing

int sign = 2*(x<0) - 1;

with something like

const int sign = x > 0 ? +1 : -1;

should fix it.

The same thing applies to the cosine equivalent.
 
 Format Excel Equations

  You must login to leave a messge