We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 175a2a0 commit f300f8fCopy full SHA for f300f8f
src/FresnelIntegrals.jl
@@ -7,14 +7,14 @@ export fresnel
7
"""
8
fresnelc(z)
9
Calculates the Fresnel cosine integral for the number z for
10
- ``C(z) = \\int_{0}^{\\infty} \\cos{\\left(\\frac{\\pi t^2}{2}\\right)}``
+ ``C(z) = \\int_{0}^{z} \\cos{\\left(\\frac{\\pi t^2}{2}\\right)}dt``
11
12
fresnelc(z::Number) = 0.25*(1-1im)*(1im*erf(0.5*(1-1im)*z*√(π)) + erf(0.5*(1+1im)*z*√(π)))
13
14
15
fresnels(z)
16
Calculates the Fresnel sine integral for the number z for
17
- ``S(z) = \\int_{0}^{\\infty} \\sin{\\left(\\frac{\\pi t^2}{2}\\right)}``
+ ``S(z) = \\int_{0}^{z} \\sin{\\left(\\frac{\\pi t^2}{2}\\right)}dt``
18
19
fresnels(z::Number) = 0.25*(1+1im)*(-1im*erf(0.5*(1-1im)*z*√(π)) + erf(0.5*(1+1im)*z*√(π)))
20
0 commit comments