Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

Even bytes get lonely for a little bit.


computers / comp.graphics.apps.gnuplot / Cornu spiral plot using CERF function

SubjectAuthor
o Cornu spiral plot using CERF functionAl Greynolds

1
Subject: Cornu spiral plot using CERF function
From: Al Greynolds
Newsgroups: comp.graphics.apps.gnuplot
Date: Mon, 18 Oct 2021 15:06 UTC
X-Received: by 2002:ad4:580c:: with SMTP id dd12mr25601919qvb.2.1634569590184;
Mon, 18 Oct 2021 08:06:30 -0700 (PDT)
X-Received: by 2002:a25:9d83:: with SMTP id v3mr28865666ybp.97.1634569589979;
Mon, 18 Oct 2021 08:06:29 -0700 (PDT)
Path: i2pn2.org!rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Mon, 18 Oct 2021 08:06:29 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1011:b04f:3fed:14dc:8062:e707:a310;
posting-account=R1FlGgkAAACT4qWBRQlFZVvqWzeWlXEN
NNTP-Posting-Host: 2600:1011:b04f:3fed:14dc:8062:e707:a310
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <aa4761f8-2ea5-4ad2-9ca8-3ceb56dcb12fn@googlegroups.com>
Subject: Cornu spiral plot using CERF function
From: layz...@aol.com (Al Greynolds)
Injection-Date: Mon, 18 Oct 2021 15:06:30 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 10
View all headers
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


1
rocksolid light 0.7.2
clearneti2ptor