|
|
PHP exp() - Math Functions
|
Tutorials » Php »
|
Topic |
What is exp Function?
|
|
Explanation |
|
The "exp()" function calculates the exponent of e.
Syntax:
exp(x)
In the above syntax "x" is the number whose exponent(e) is to be calculated.
Example:
<?php
echo exp(1) . "\n";
echo exp(5.7);
?>
Result:
2.718281828459045
298.87
In the above example the exponent(e) value of numbers "1", "5.7" is calculated.
|
|
A Note |
Learn PHP programming language tutorial with simple and neat example. Hope you enjoy this free tutorial.
Do give us your valuable feedback and suggestions on this online tutorial. This is a Copyright Content.
|
|
|
|