cvs: php4 /ext/standard math.c php_math.h

From: Date: Wed, 15 Aug 2001 19:08:59 +0000
Subject: cvs: php4 /ext/standard math.c php_math.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-6870@lists.php.net to get a copy of this message
jeroen Wed Aug 15 15:08:59 2001 EDT Modified files: /php4/ext/standard math.c php_math.h Log: Remove cbrt also, and mark logm1 and exp1p as expermintal Index: php4/ext/standard/math.c diff -u php4/ext/standard/math.c:1.54 php4/ext/standard/math.c:1.55 --- php4/ext/standard/math.c:1.54 Wed Aug 15 15:01:32 2001 +++ php4/ext/standard/math.c Wed Aug 15 15:08:59 2001 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: math.c,v 1.54 2001/08/15 19:01:32 jeroen Exp $ */ +/* $Id: math.c,v 1.55 2001/08/15 19:08:59 jeroen Exp $ */ #include "php.h" #include "php_math.h" @@ -515,7 +515,10 @@ #ifndef PHP_WIN32 /* {{{ proto double expm1(double number) Returns exp(number) - 1, computed in a way that accurate even when - the value of number is close to zero */ + the value of number is close to zero + WARNING: this function is expermental: it could change its name or + disappear in the next version of PHP! + */ PHP_FUNCTION(expm1) { @@ -532,7 +535,10 @@ /* }}} */ /* {{{ proto double log1p(double number) Returns log(1 + number), computed in a way that accurate even when - the value of number is close to zero */ + the value of number is close to zero + WARNING: this function is expermental: it could change its name or + disappear in the next version of PHP! + */ PHP_FUNCTION(log1p) { @@ -598,27 +604,12 @@ /* }}} */ -#ifndef PHP_WIN32 -/* {{{ proto double cbrt(double number) - Returns the cubic root of the number */ - -PHP_FUNCTION(cbrt) -{ - zval **num; - - if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &num) == FAILURE) { - WRONG_PARAM_COUNT; - } - convert_to_double_ex(num); - Z_DVAL_P(return_value) = cbrt(Z_DVAL_PP(num)); - Z_TYPE_P(return_value) = IS_DOUBLE; -} - -/* }}} */ -#endif /* {{{ proto double hypot(double num1, double num2) - Returns sqrt( num1*num1 + num2*num2) */ + Returns sqrt( num1*num1 + num2*num2) + WARNING: this function is expermental: it could change its name or + disappear in the next version of PHP! + */ PHP_FUNCTION(hypot) { Index: php4/ext/standard/php_math.h diff -u php4/ext/standard/php_math.h:1.7 php4/ext/standard/php_math.h:1.8 --- php4/ext/standard/php_math.h:1.7 Wed Aug 1 09:48:14 2001 +++ php4/ext/standard/php_math.h Wed Aug 15 15:08:59 2001 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_math.h,v 1.7 2001/08/01 13:48:14 andrei Exp $ */ +/* $Id: php_math.h,v 1.8 2001/08/15 19:08:59 jeroen Exp $ */ #ifndef PHP_MATH_H #define PHP_MATH_H @@ -55,13 +55,15 @@ PHP_FUNCTION(deg2rad); PHP_FUNCTION(rad2deg); -PHP_FUNCTION(exp2); -PHP_FUNCTION(exp10); -PHP_FUNCTION(log2); -PHP_FUNCTION(cbrt); + /* + WARNING: these functions are expermental: they could change their names or + disappear in the next version of PHP! + */ PHP_FUNCTION(hypot); PHP_FUNCTION(expm1); PHP_FUNCTION(log1p); + + PHP_FUNCTION(sinh); PHP_FUNCTION(cosh); PHP_FUNCTION(tanh);

« previous php.cvs (#6870) next »