Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #4216
| Path | csiph.com!weretis.net!feeder6.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Karl Ratzsch <mail.kfr@gmx.net> |
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: User function in "using" expression |
| Date | Wed, 28 Aug 2019 22:01:23 +0200 |
| Organization | solani.org |
| Lines | 31 |
| Message-ID | <qk6mil$f9d$1@solani.org> (permalink) |
| References | <7e124480-f733-4e41-a0be-410b51938ddf@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | solani.org 1567022485 15661 127.0.0.43 (28 Aug 2019 20:01:25 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Wed, 28 Aug 2019 20:01:25 +0000 (UTC) |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
| Content-Language | de-DE-1901 |
| Cancel-Lock | sha1:+mwUq1Kcma4Gha6QDaeQB5tPQIY= |
| X-User-ID | eJwNyMkRwEAIA7CWlhibbDkMR/8lJHqKkKnCRTmXG5rHdFVdDuoAM3y323eHeROMIqHzV9I+GL0RDQ== |
| In-Reply-To | <7e124480-f733-4e41-a0be-410b51938ddf@googlegroups.com> |
| Xref | csiph.com comp.graphics.apps.gnuplot:4216 |
Show key headers only | View raw
Am 28.08.2019 um 21:01 schrieb layzarc@aol.com:
> 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
the exponential operator in gnuplot is ** , not ^
I didnt know about this one
| |A| cardinality of array A
thanks. ;)
Karl
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
User function in "using" expression layzarc@aol.com - 2019-08-28 12:01 -0700
Re: User function in "using" expression Karl Ratzsch <mail.kfr@gmx.net> - 2019-08-28 22:01 +0200
Re: User function in "using" expression layzarc@aol.com - 2019-08-28 13:09 -0700
Re: User function in "using" expression Karl Ratzsch <mail.kfr@gmx.net> - 2019-08-28 21:53 +0200
csiph-web