summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorJeroen van Wolffelaar <jeroen@php.net>2001-08-15 19:08:59 +0000
committerJeroen van Wolffelaar <jeroen@php.net>2001-08-15 19:08:59 +0000
commit2b6bafb2698b2a8c7d43f43e6e367d767835e529 (patch)
tree0a379b6a73f75f768526c0e30cb47e0eb9c3a71d /ext
parentd62fbbd5a856fca9b96230e89dc4b31229681782 (diff)
downloadphp-git-2b6bafb2698b2a8c7d43f43e6e367d767835e529.tar.gz
Remove cbrt also, and mark logm1 and exp1p as expermintal
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/math.c33
-rw-r--r--ext/standard/php_math.h10
2 files changed, 18 insertions, 25 deletions
diff --git a/ext/standard/math.c b/ext/standard/math.c
index 106d6efe50..dcf471e855 100644
--- a/ext/standard/math.c
+++ b/ext/standard/math.c
@@ -515,7 +515,10 @@ PHP_FUNCTION(exp)
#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 @@ PHP_FUNCTION(expm1)
/* }}} */
/* {{{ 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 @@ PHP_FUNCTION(sqrt)
/* }}} */
-#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)
{
diff --git a/ext/standard/php_math.h b/ext/standard/php_math.h
index 7ccc384630..beef7dd160 100644
--- a/ext/standard/php_math.h
+++ b/ext/standard/php_math.h
@@ -55,13 +55,15 @@ PHP_FUNCTION(number_format);
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);