Source Code:
(back to article)
<?php // PHP program to demonstrate the expm1() function $n1 = 1; $n2 = 0; //prints value of e^1 - 1 echo "e^", $n1, "-1 = ", expm1($n1), "\n"; //prints value of e^0 - 1 echo "e^", $n2, "-1 = ", expm1($n2), "\n";
Result:
Report an issue