Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

All programmers are playwrights and all computers are lousy actors.


computers / comp.graphics.apps.gnuplot / Re: What am I missing?

SubjectAuthor
* What am I missing?Al Greynolds
`* Re: What am I missing?Chris Elvidge
 `- Re: What am I missing?Al Greynolds

1
Subject: What am I missing?
From: Al Greynolds
Newsgroups: comp.graphics.apps.gnuplot
Date: Fri, 4 Dec 2020 16:10 UTC
X-Received: by 2002:a05:620a:16cd:: with SMTP id a13mr9279477qkn.11.1607098260040;
Fri, 04 Dec 2020 08:11:00 -0800 (PST)
X-Received: by 2002:a25:7416:: with SMTP id p22mr6572571ybc.287.1607098259790;
Fri, 04 Dec 2020 08:10:59 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Fri, 4 Dec 2020 08:10:59 -0800 (PST)
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=2601:500:c200:16e0:cc3a:1f9c:d7c3:249f;
posting-account=R1FlGgkAAACT4qWBRQlFZVvqWzeWlXEN
NNTP-Posting-Host: 2601:500:c200:16e0:cc3a:1f9c:d7c3:249f
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <61b9cd9a-2508-400e-abf6-fc823fe9e28an@googlegroups.com>
Subject: What am I missing?
From: layz...@aol.com (Al Greynolds)
Injection-Date: Fri, 04 Dec 2020 16:11:00 +0000
Content-Type: text/plain; charset="UTF-8"
View all headers
From these Gnuplot 5+ commands:

rx=2;kx=0;ry=1;ky=-1
ex=(1+kx)/rx
ey=(1+ky)/ry
show variables

I get this output:

        rx = 2
        kx = 0
        ry = 1
        ky = -1
        ex = 0
        ey = 0

Why is ex zero?

Al


Subject: Re: What am I missing?
From: Chris Elvidge
Newsgroups: comp.graphics.apps.gnuplot
Organization: A noiseless patient Spider
Date: Fri, 4 Dec 2020 19:12 UTC
References: 1
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: chr...@mshome.net (Chris Elvidge)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: What am I missing?
Date: Fri, 4 Dec 2020 19:12:00 +0000
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <rqe1m5$5co$1@dont-email.me>
References: <61b9cd9a-2508-400e-abf6-fc823fe9e28an@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 4 Dec 2020 19:12:06 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="2cdd4bb21406627f428f6502542dfb29";
logging-data="5528"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/onektUo8KPgKO/esk/MDqGz8RHNOYR2E="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:pcRgzG1QVhwZhnADfoefs+319P4=
In-Reply-To: <61b9cd9a-2508-400e-abf6-fc823fe9e28an@googlegroups.com>
Content-Language: en-GB
View all headers
On 04/12/2020 04:10 pm, Al Greynolds wrote:
 From these Gnuplot 5+ commands:

rx=2;kx=0;ry=1;ky=-1
ex=(1+kx)/rx
ey=(1+ky)/ry
show variables

I get this output:

         rx = 2
         kx = 0
         ry = 1
         ky = -1
         ex = 0
         ey = 0

Why is ex zero?

Al


Note that gnuplot uses both "real" and "integer" arithmetic, like FORTRAN and C. Integers are entered as "1", "-10", etc; reals as "1.0", "-10.0", "1e1", 3.5e-1, etc. The most important difference between the two forms is in division: division of integers truncates: 5/2 = 2; division of reals does not: 5.0/2.0 = 2.5.


--
Chris Elvidge
England


Subject: Re: What am I missing?
From: Al Greynolds
Newsgroups: comp.graphics.apps.gnuplot
Date: Fri, 4 Dec 2020 19:51 UTC
References: 1 2
X-Received: by 2002:a37:4796:: with SMTP id u144mr10546590qka.235.1607111487622;
Fri, 04 Dec 2020 11:51:27 -0800 (PST)
X-Received: by 2002:a25:ed7:: with SMTP id 206mr7525269ybo.136.1607111487443;
Fri, 04 Dec 2020 11:51:27 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Fri, 4 Dec 2020 11:51:27 -0800 (PST)
In-Reply-To: <rqe1m5$5co$1@dont-email.me>
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=2601:500:c200:16e0:2d0f:e0fc:f0c7:92f8;
posting-account=R1FlGgkAAACT4qWBRQlFZVvqWzeWlXEN
NNTP-Posting-Host: 2601:500:c200:16e0:2d0f:e0fc:f0c7:92f8
References: <61b9cd9a-2508-400e-abf6-fc823fe9e28an@googlegroups.com> <rqe1m5$5co$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f3ade688-e10d-4f8c-87be-0ecfeecdc571n@googlegroups.com>
Subject: Re: What am I missing?
From: layz...@aol.com (Al Greynolds)
Injection-Date: Fri, 04 Dec 2020 19:51:27 +0000
Content-Type: text/plain; charset="UTF-8"
View all headers
On Friday, December 4, 2020 at 12:12:08 PM UTC-7, Chris Elvidge wrote:

Note that gnuplot uses both "real" and "integer" arithmetic, like
FORTRAN and C. Integers are entered as "1", "-10", etc; reals as "1.0",
"-10.0", "1e1", 3.5e-1, etc. The most important difference between the
two forms is in division: division of integers truncates: 5/2 = 2;
division of reals does not: 5.0/2.0 = 2.5.


--
Chris Elvidge
England

Duh! Thanks.  I'm used to working in another app where all numbers are stored as doubles.


1
rocksolid light 0.7.2
clearneti2ptor