Re: Package Proposal: Math_RPN

From: Date: Mon, 26 May 2003 21:52:33 +0000
Subject: Re: Package Proposal: Math_RPN
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-16733@lists.php.net to get a copy of this message
Hi, Some changes: - new method addOperator() to set a custom (user defined) operator - new method _raiseError() which returns a PEAR error - method getValue() now is called calculate(), and it takes new arguments - angle's unit and is_rpn - changed name: pile into _stack, rule into _operation - changed keyExists() method - removed a bug with '-' (minus) - scripts didn't know when '-' means a difference operator and when a negative operator, now it do :) - name 'RPN' changed into 'Math_Rpn' - corrected operators - exp, E, pi, e - new operarors - mod, div What do you think about addOperator() method? Is this a good way to set the user operator? New version is here -> http://www.maciek.maribex.wizja.net.pl/rpn/ Regards, Maciek admin@e-rower.pl

« previous php.pear.dev (#16733) next »