Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #4212

Intermediate variables in user functions

X-Received by 2002:a37:8c84:: with SMTP id o126mr12004860qkd.467.1566740015423; Sun, 25 Aug 2019 06:33:35 -0700 (PDT)
X-Received by 2002:a9d:63d7:: with SMTP id e23mr11119810otl.269.1566740015223; Sun, 25 Aug 2019 06:33:35 -0700 (PDT)
Path csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.linkpendium.com!news.linkpendium.com!news.snarked.org!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!a13no4848987qtd.0!news-out.google.com!d29ni2926qtg.1!nntp.google.com!a13no4848981qtd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.graphics.apps.gnuplot
Date Sun, 25 Aug 2019 06:33:35 -0700 (PDT)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=2601:500:c280:30:1178:2ab5:37a1:ef4c; posting-account=R1FlGgkAAACT4qWBRQlFZVvqWzeWlXEN
NNTP-Posting-Host 2601:500:c280:30:1178:2ab5:37a1:ef4c
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <ab86c7c7-54d1-434d-bcbd-a60d33e0d13c@googlegroups.com> (permalink)
Subject Intermediate variables in user functions
From layzarc@aol.com
Injection-Date Sun, 25 Aug 2019 13:33:35 +0000
Content-Type text/plain; charset="UTF-8"
Lines 10
Xref csiph.com comp.graphics.apps.gnuplot:4212

Show key headers only | View raw


I have a script that works beautifully that has the following function definitions:

phi(x,y) = (1+x)/(1+sqrt(1+(x*x-1)*y))
astig(n,x,y) = phi(x,y)*(1-phi(x,y)*y)*(n-1)**2-(phi(x,y)-n*n)*(n-1+y*(phi(x,y)-n))**2

It would be a lot cleaner if the following was possible:

phi(x,y) = (1+x)/(1+sqrt(1+(x*x-1)*y))
astig(n,x,y) = f=phi(x,y) f*(1-f*y)*(n-1)**2-(f-n*n)*(n-1+y*(f-n))**2

Al

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar


Thread

Intermediate variables in user functions layzarc@aol.com - 2019-08-25 06:33 -0700
  Re: Intermediate variables in user functions Ethan Merritt <eamerritt@gmail.com> - 2019-08-25 17:46 +0000
    Re: Intermediate variables in user functions layzarc@aol.com - 2019-08-25 12:21 -0700

csiph-web