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


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

Re: What am I missing?

From Chris Elvidge <chris@mshome.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: What am I missing?
Date 2020-12-04 19:12 +0000
Organization A noiseless patient Spider
Message-ID <rqe1m5$5co$1@dont-email.me> (permalink)
References <61b9cd9a-2508-400e-abf6-fc823fe9e28an@googlegroups.com>

Show all headers | View raw


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

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


Thread

What am I missing? Al Greynolds <layzarc@aol.com> - 2020-12-04 08:10 -0800
  Re: What am I missing? Chris Elvidge <chris@mshome.net> - 2020-12-04 19:12 +0000
    Re: What am I missing? Al Greynolds <layzarc@aol.com> - 2020-12-04 11:51 -0800

csiph-web