<?php
float expm1 ( float $num )
where,
$num = The argument to process
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
e = 2.718281828459045235360287471352662497757247
09369995957496696762772407663035354759457138
21785251664274274663919320030599218174135966
29043572900334295260595630738132328627943490
76323382988075319525101901157383418793070215408...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
?>
<table width="100%" border="1" cellspacing="5" cellpadding="5">
<tr>
<td colspan="3">EQUIVALENT VALUES</td></tr>
<?php
// setlocale(LC_ALL, "de_DE.utf-8", "de-DE", "de");
$n_a = array (-5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5);
for ($n=0; $n<=10; $n++)
{
$exp1_a = expm1($n_a[$n]);
$exp_a = exp($n_a[$n]) - 1;
echo '<td>expm1(' . $n_a[$n] . ') = ' . $exp1_a . '</td>';
echo '<td>=</td>';
echo '<td>exp(' . $n_a[$n] . ') - 1 = ' . $exp_a . '</td> </tr>';
}
?>
<td colspan="3">ed48</td></tr></table>