[rrd-users] Re: Quick RPN question... (Square root in RPN?)

Simon Mullis Simon.Mullis at equinoxsolutions.com
Mon Jun 9 16:48:35 MEST 2003


Alex,

Thanks for the idea - That works with natural log:

i.e. Sqrt(x) = exp(ln(x)/2)

Do we have ln in our RPN implementation?  I'm not sure that we do?!!

Thanks

SM

-----Original Message-----
From: Alex van den Bogaerdt [mailto:alex at ergens.op.het.net]
Sent: 09 June 2003 12:29
To: RRD Users
Subject: [rrd-users] Re: Quick RPN question... (Square root in RPN?)


On Mon, Jun 09, 2003 at 11:07:40AM +0100, Simon Mullis wrote:
> Hello all,
> 
> 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

Not sure,never tried it, just try it yourself.

HTH
-- 
Much of what looks like rudeness in hacker circles is not intended to give
offence. Rather, it's the product of the direct, cut-through-the-bullshit
communications style that is natural to people who are more concerned about
solving problems than making others feel warm and fuzzy.

http://www.tuxedo.org/~esr/faqs/smart-questions.html

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi


------------------------------------------------------------------------------------------
Equinox Converged Solutions Limited.
Tel: +44 (0)1252 405 600
http://www.equinoxsolutions.com

IMPORTANT NOTICE:
This message is intended solely for the use of the Individual or organisation to whom it is addressed. It may contain privileged or confidential information.  If you have received this message in error, please notify the originator immediately.
If you are not the intended recipient, you should not use, copy, alter, or disclose the contents of this message.  All information or opinions expressed in this message and/or any attachments are those of the author and are not necessarily those of Equinox Converged Solutions Limited.
Equinox Converged Solutions Limited accepts no responsibility  for loss or damage arising from its use, including damage from virus.
------------------------------------------------------------------------------------------

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list