On Mon, Jun 09, 2003 at 01:28:42PM +0200, Alex van den Bogaerdt wrote:
> > Am I right in thinking there is no easy way to do a square root in RPN?
> 
> Isn't a square root the same as exp(log(x)/2) ?
> 
> CDEF:y=x,LOG,2,/,EXP

Following up on my own posting.

I got curious myself and did some testing.  The result is attached to
this message and will be stripped by listar.

It should be possible to retrieve the files, they are:
- grapher             a bash script doing the work
- numbers.rrd         resulting RRD
- index.html          small but effective
- allnumbers.png      showing y=sqrt(x)  for x = 0 .. 24
- lownumbers.png      showing both y=sqrt(x) and y=x  for x = 0 .. 5

The script is bash, it needs gnu-date.  It should be easy to port
it to, for instance, perl.  Many comments, absolutely no warranty.

cheers,
Alex


-- Attached file removed by Ecartis and put at URL below --
-- Type: application/octet-stream
-- Size: 2k (2720 bytes)
-- URL : http://www.ee.ethz.ch/~slist/p/grapher


-- Attached file removed by Ecartis and put at URL below --
-- Type: application/octet-stream
-- Size: 4k (4380 bytes)
-- URL : http://www.ee.ethz.ch/~slist/p/numbers.rrd


-- Attached file removed by Ecartis and put at URL below --
-- Type: text/html
-- Size: 363 bytes
-- URL : http://www.ee.ethz.ch/~slist/p/index.html


-- Attached file removed by Ecartis and put at URL below --
-- Type: image/png
-- Size: 55k (56792 bytes)
-- URL : http://www.ee.ethz.ch/~slist/p/allnumbers.png


-- Attached file removed by Ecartis and put at URL below --
-- Type: image/png
-- Size: 63k (65124 bytes)
-- URL : http://www.ee.ethz.ch/~slist/p/lownumbers.png


--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to