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);
}
| PHP动态 | 经典文章 | CLASS | 相关下载 | 常见问题 | FORUM | WIKI | 在线手册 |
| |||||||||||||||||||
| view source | feedback | send page | sitemap | aboutus |
|
Copyright ® 2002-2003 PHPE.NET. All rights reserved Last updated:2002-11-22 |