超越PHP PHP动态 | 经典文章 | CLASS | 相关下载 | 常见问题 | FORUM | WIKI | 在线手册
Site search:    
<expfloor>
Last updated: Fri, 22 Jun 2007

expm1

(PHP 4 >= 4.1.0, PHP 5)

expm1 --  返回 exp(number) - 1,甚至当 number 的值接近零也能计算出准确结果

说明

float expm1 ( float number)

警告

本扩展模块是实验性的。该模块的行为,包括其函数的名称以及其它任何关于此模块的文档可能会在没有通知的情况下随 PHP 以后的发布而改变。我们提醒您在使用本扩展模块的同时自担风险。

警告

该函数目前尚无参考文档;仅参数列表可用。




add a note add a note User Contributed Notes
expm1
hagen at von-eitzen dot de
24-Feb-2003 07:57
Compare this to log1p (which is its inverse).

Also, You may have to use a similar workaraound in case the underlying C library
does not support expm1:

function expm1($x) {
    return ($x>-1.0e-6 && $x<1.0e-6) ? ($x + $x*$x/2) : (exp($x)-1);
}

<expfloor>
 Last updated: Fri, 22 Jun 2007
view source | feedback | send page | sitemap | aboutus   
Copyright ® 2002-2003 PHPE.NET. All rights reserved
Last updated:2002-11-22