Cornu spiral plot using CERF function

11 views
Skip to first unread message

Al Greynolds

unread,
Oct 18, 2021, 11:06:30 AM10/18/21
to
Needed to do some diffraction calculations and remembered that the complex Fresnel Integral can be written in terms of a complex ERF function.

fresnel(x) = {1.,1.}*cerf(sqrt(pi)*{1.,-1.}*x/2.)/2.
set samples 1000
set parametric
unset key
plot real(fresnel(t)),imag(fresnel(t))

After almost 2 decades as a user, Gnuplot still can amaze me. Keep up the good work all you developers.

Al
Reply all
Reply to author
Forward
0 new messages