Skip to content

Commit f300f8f

Browse files
committed
Wrong math in docs
1 parent 175a2a0 commit f300f8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FresnelIntegrals.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ export fresnel
77
"""
88
fresnelc(z)
99
Calculates the Fresnel cosine integral for the number z for
10-
``C(z) = \\int_{0}^{\\infty} \\cos{\\left(\\frac{\\pi t^2}{2}\\right)}``
10+
``C(z) = \\int_{0}^{z} \\cos{\\left(\\frac{\\pi t^2}{2}\\right)}dt``
1111
"""
1212
fresnelc(z::Number) = 0.25*(1-1im)*(1im*erf(0.5*(1-1im)*z*√(π)) + erf(0.5*(1+1im)*z*√(π)))
1313

1414
"""
1515
fresnels(z)
1616
Calculates the Fresnel sine integral for the number z for
17-
``S(z) = \\int_{0}^{\\infty} \\sin{\\left(\\frac{\\pi t^2}{2}\\right)}``
17+
``S(z) = \\int_{0}^{z} \\sin{\\left(\\frac{\\pi t^2}{2}\\right)}dt``
1818
"""
1919
fresnels(z::Number) = 0.25*(1+1im)*(-1im*erf(0.5*(1-1im)*z*√(π)) + erf(0.5*(1+1im)*z*√(π)))
2020

0 commit comments

Comments
 (0)