Languages
[Edit]
EN

Java - Math.exp() method example

0 points
Created by:
Emelia
517

Math.exp() is a static method that takes only one parameter and returns exponential function value in the range 0 (exclusive) to +Infinity.

1. Documentation

Edit
Syntax

Note: Classes in the java.lang package are imported automatically, so it is not necessary to do it manually - we use just Math.exp() call.

Parametersnumber - double value (primitive value).
Result

Exponential function value of a number in the range 0 (exclusive) to +Infinity (primitive value).

If the value can not be calculated NaN is returned.

Description

Math.exp() is a static method that takes only one parameter and returns exponential function value.

2. Reversed console plot example

Edit

 

Output: 

 

 

References

Edit

 

  1. Exponential function - Wikipedia

 

1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Java - Math object

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join