ES6 - Fonction math exp ()

Équivalent à Math.pow (Math.E, x).

Syntaxe

Math.exp ( x ) ;

Paramètre

  • x - représente un nombre

Valeur de retour

Renvoie la valeur exponentielle de la variable x.

Exemple

console.log("---Math.exp()---") 
console.log("Math.exp(1) : "+Math.exp(1)) 
console.log("Math.exp(5.5) : "+Math.exp(5.5))

Production

---Math.exp()--- 
Math.exp(1) : 2.718281828459045 
Math.exp(5.5) : 244.69193226422036