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

Tobias Oetiker oetiker at ee.ethz.ch
Mon Jun 9 12:33:38 MEST 2003


Today Simon Mullis wrote:

> Hello all,
>
> Am I right in thinking there is no easy way to do a square root in RPN?
>
> I want to calculate a Standard Deviation of a set of values. Anyone done
> this already?
>
> I want to use RPN because I'd like to superimpose the value of the Std Dev
> on the graph of the normal values.
>
> Or should I just use Perl and RRDs::fetch ?
> Thanks

SM,

look at the code for rrd_graph.c adding new functions to RPN is
pretty straight forward ... compare with the SIN function for
example

tobi
-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker @ ISG.EE, ETZ J97, ETH, CH-8092 Zurich
 / // _ \/ _ \/ /  System Manager, Time Lord, Coder, Designer, Coach
/_/ \.__/_.__/_/   http://people.ee.ethz.ch/~oetiker   +41(0)1-632-5286

--
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