Math Exp In PHP

In this article I am going to explain PHP math exp function.
  • 2014

Introduction

It calculates the exponent of e (e is the base of the natural number system of logarithms, or approximately 2.718282). 

Syntax

exp  (number)


Parameters in
 Exp function

It contains one parameter; it is:
 

Parameter Description
number It specifies a number.


Example of Exp function

<?php

echo ("exp of 0 is ".exp(0)."</br>");

echo ("exp of -2 is ".exp(-2)."</br>");

echo ("exp of 3 is ".exp(3)."</br>");

echo ("exp of 3.3 is ".exp(3.3)."</br>");

?>

Output

math-exp-function-in-php.jpg

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.