diff --git a/Derivative.php b/Derivative.php index 85ee07a..750dde9 100755 --- a/Derivative.php +++ b/Derivative.php @@ -7,9 +7,9 @@ * * PHP version 4 and 5 * - * LICENSE: This source file is subject to version 3.0 of the PHP license + * LICENSE: This source file is subject to version 3.01 of the PHP license * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of + * http://www.php.net/license/3_01.txt. If you did not receive a copy of * the PHP License and are unable to obtain it through the web, please * send a note to license@php.net so we can mail you a copy immediately. * @@ -17,7 +17,7 @@ * @package Math_Derivative * @author Etienne Kneuss * @copyright 1997-2005 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @license http://www.php.net/license/3_01.txt PHP License 3.01 * @version CVS: $Id$ * @link http://pear.php.net/package/Math_Derivative */ @@ -98,12 +98,16 @@ class Math_Derivative { * @var array * @access protected */ - var $_registeredFunctions = array('sin' => 'cos(arg)*d(arg)', - 'cos' => '-sin(arg)*d(arg)', - 'tan' => '1/cos(arg)^2*d(arg)', - 'ln' => 'd(arg)/(arg)', - 'log' => 'd(arg)/(arg)', - 'e' => 'd(arg)*e(arg)'); + var $_registeredFunctions = array('sin' => 'cos(arg)*d(arg)', + 'cos' => '-sin(arg)*d(arg)', + 'tan' => '1/cos(arg)^2*d(arg)', + 'ln' => 'd(arg)/(arg)', + 'log' => 'd(arg)/(arg)', + 'e' => 'd(arg)*e(arg)', + 'sqrt' => 'd((arg)^(1/2))', + 'acos' => '-1/((1-(arg)^2)^(1/2))', + 'asin' => '1/((1-(arg)^2)^(1/2))', + 'atan' => '1/(1+(arg)^2)'); // }}} // {{{ setVariableName([(string) $value]) diff --git a/package.xml b/package.xml index 9941308..78ca791 100755 --- a/package.xml +++ b/package.xml @@ -1,31 +1,45 @@ - + - - Math_Derivative - Calculate the derivative of a mathematical expression - This class allows you to calculate the derivative of an expression stored in a string. - - - colder - Etienne Kneuss - colder@php.net - lead - + + Math_Derivative + Calculate the derivative of a mathematical expression + This package allows you to calculate the derivative of an expression stored in a string. + + + + colder + Etienne Kneuss + colder@php.net + lead + - - 0.1 - 2006-02-15 - PHP License - alpha - - - - - - - 0.1 - 2006-02-15 - First version - - + + 0.1.0 + 2006-11-18 + PHP License 3.01 + beta + + Beta release after 8 months of tests. + Included predefined functions like sqrt(), atan(), acos(), asin(). + + + + + + + + + + + + + + + + + + + + + diff --git a/package2.xml b/package2.xml new file mode 100644 index 0000000..2b78e1f --- /dev/null +++ b/package2.xml @@ -0,0 +1,48 @@ + + + Math_Derivative + pear.php.net + Calculate the derivative of a mathematical expression + This package allows you to calculate the derivative of an expression stored in a string. + + + + Etienne Kneuss + colder + colder@php.net + yes + + 2006-11-18 + + + 0.1.0 + 0.1.0 + + + beta + beta + + PHP License 3.01 + Beta release after 8 months of tests. +Included predefined functions like sqrt(), atan(), acos(), asin(). + + + + + + + + + + 4.0.0 + + + 1.4.0b1 + + + + +