function calculate_e ($accuracy
{
$e = 0;
$factorial = 1;
for$i=1;$i<=$accuracy$i++) {
$e += 1 / $factorial
$factorial *= $i
}
return $e
}
function calculate_e ($accuracy
{
$e = 0;
$factorial = 1;
for$i=1;$i<=$accuracy$i++) {
$e += 1 / $factorial
$factorial *= $i
}
return $e
}