X-Received: by 2002:a37:e208:: with SMTP id g8mr5754180qki.237.1567018865338; Wed, 28 Aug 2019 12:01:05 -0700 (PDT) X-Received: by 2002:aca:c355:: with SMTP id t82mr3951974oif.99.1567018865121; Wed, 28 Aug 2019 12:01:05 -0700 (PDT) Path: csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!a13no3490152qtd.0!news-out.google.com!q13ni145qtn.0!nntp.google.com!a13no3490146qtd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Wed, 28 Aug 2019 12:01:04 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:500:c280:30:355d:1847:c905:ecff; posting-account=R1FlGgkAAACT4qWBRQlFZVvqWzeWlXEN NNTP-Posting-Host: 2601:500:c280:30:355d:1847:c905:ecff User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <7e124480-f733-4e41-a0be-410b51938ddf@googlegroups.com> Subject: User function in "using" expression From: layzarc@aol.com Injection-Date: Wed, 28 Aug 2019 19:01:05 +0000 Content-Type: text/plain; charset="UTF-8" Lines: 23 Xref: csiph.com comp.graphics.apps.gnuplot:4215 I'm trying to use gnuplot to solve a specific version of the problem 3d plot z(x,y) with x,ys subject to the constraint f(x,y)=0 The following works (the files are 0 contours captured by set table) array n[6] file(i) = sprintf("coma%d.gpt",i) splot for [i=1:|n|] file(i) using 1:2:(0):(0):(0):(1) with vectors but if I also do: phi(x,y) = (1+x)/(1+sqrt(1+(x*x-1)*y)) spher(n,x,y) = (f=phi(x,y),n2=n*n,((f-n)^2*(f-n2)*(1-y*f)-f^3)/(n2*(n-1)^3)) splot for [i=1:|n|] file(i) using 1:2:(0):(0):(0):(spher(n[i],$1,$2)) with vectors I get the following message: non-integer passed to boolean operator What am I missing? I can provide the full file if needed. Al