Calculation of e, the inverse nature of exp and log : log « Math « PHP






Calculation of e, the inverse nature of exp and log

 
<?php

$e = exp(1);
echo "$e\n";
$i = log($e);
echo "$i\n";
?>
  
  








Related examples in the same category

1.Calculate logarithms with other base values by dividing the result of the log() function with log(base).
2.calculate logarithms by dividing log() function with log(base)