Glossary Term
Math.exp()
2 tags
1 category
The Math.exp() static method returns e raised to the power of a number. That is
𝙼𝚊𝚝𝚑.𝚎𝚡𝚙(𝚡)=exmathtt{operatorname{Math.exp}(x)} = mathrm{e}^x
Because exp() is a static method of Math, you always use it as Math.exp(), rather than as a method of a Math object you created (Math is not a constructor).
Beware that e to the power of a number very close to 0 will be very close to 1 and suffer from loss of precision. In this case, you may want to use Math.expm1 instead, and obtain a much higher-precision fractional part of the answer.
Syntax example: Math.exp(x)
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
