Source Code:
(back to article)
<?php // PHP code to illustrate the working // of expm1() Function // input array $array = [2, 3, 1, 5]; // print all the e^x-1 values in the arrays foreach ($array as $i) { echo 'e^' . $i . '-1 = ' . expm1($i) . "\n"; }
Result:
Report an issue