Exponential Minus One

../_images/exp_minus_one.png

You can save typing by using expm1($x) instead of exp($x) - 1. Also, you might have to take care of differences, as both results might be slightly different depending on the OS you’re running it on : Debian is OK, but MacOS says it’s different.

See Also

PHP Features