The exp function in Perl calculates “e” raised to the power of the real number taken as the parameter.
Here “e” is Euler’s Number or the base of the Natural system of logarithms or commonly known as an irrational number which approximates to 2.718281828, and is one of the most important mathematical constants. This “e” is broadly used in many occasions such as Compound Interests, Bernoulli trials, Normal Distribution, Calculus and many more.
Syntax: exp value
value: It is the real value which defines the power “e” has to be raised to.
Returns: the value of e raised to the power of the given real value.
1 2.71828182845905 22026.4657948067 485165195.40979
2.71828182845905 7.38905609893065 20.0855369231877 54.5981500331442
- Perl | log() Function
- Perl | hex Function
- Perl | int() function
- Perl | each() Function
- Perl | chr() Function
- Perl | oct() Function
- Perl | sin() Function
- Perl | uc() Function
- Perl | cos() Function
- Perl | tell() Function
- Perl | abs() function
- Perl | ord() Function
- Perl | rand() Function
- Perl | push() Function
- Perl | sqrt() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.