cvs: pear /Math_Derivative Derivative.php
| From: | Etienne Kneuss | Date: | Sat, 24 Feb 2007 12:18:27 +0000 |
| Subject: | cvs: pear /Math_Derivative Derivative.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-44855@lists.php.net to get a copy of this message | ||
colder Sat Feb 24 12:18:27 2007 UTC
Modified files:
/pear/Math_Derivative Derivative.php
Log:
introduce hyperbolic functions
http://cvs.php.net/viewvc.cgi/pear/Math_Derivative/Derivative.php?r1=1.4&r2=1.5&diff_format=u
Index: pear/Math_Derivative/Derivative.php
diff -u pear/Math_Derivative/Derivative.php:1.4 pear/Math_Derivative/Derivative.php:1.5
--- pear/Math_Derivative/Derivative.php:1.4 Sat Nov 18 15:02:50 2006
+++ pear/Math_Derivative/Derivative.php Sat Feb 24 12:18:27 2007
@@ -18,7 +18,7 @@
* @author Etienne Kneuss <colder@php.net>
* @copyright 1997-2005 The PHP Group
* @license http://www.php.net/license/3_01.txt PHP License 3.01
- * @version CVS: $Id: Derivative.php,v 1.4 2006/11/18 15:02:50 colder Exp $
+ * @version CVS: $Id: Derivative.php,v 1.5 2007/02/24 12:18:27 colder Exp $
* @link http://pear.php.net/package/Math_Derivative
*/
@@ -107,7 +107,14 @@
'sqrt' => 'd((arg)^(1/2))',
'acos' => '-1/((1-(arg)^2)^(1/2))',
'asin' => '1/((1-(arg)^2)^(1/2))',
- 'atan' => '1/(1+(arg)^2)');
+ 'atan' => '1/(1+(arg)^2)',
+ 'sinh' => 'cosh(arg)*d(arg)',
+ 'cosh' => 'sinh(arg)*d(arg)',
+ 'tanh' => '(sech(arg)^2)*d(arg)',
+ 'coth' => '-(csch(arg)^2)*d(arg)',
+ 'sech' =>
'-sech(arg)*tanh(arg)*d(arg)',
+ 'csch' =>
'-csch(arg)*coth(arg)*d(arg)',
+ );
// }}}
// {{{ setVariableName([(string) $value])
@@ -723,5 +730,4 @@
}
// }}}
-?>