• Cornu spiral plot using CERF function

    From Al Greynolds@21:1/5 to All on Mon Oct 18 08:06:29 2021
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)