Languages
[Edit]
EN

Java - Math.E property example

0 points
Created by:
Nikki-Mathews
517

The Math.E property returns e mathematical constant (2.718281828459045...).

e is called Euler's number or Napier's constant. However, it was discovered by Jacob Bernoulli. It is a mathematical constant used as the base of the natural logarithm.


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.E() call.

Resulte number (2.718281828459045...).
Description

E is a static property that keeps e number what is one of the most commonly used mathematical constants.

2. e number approximation example

Edit

To calculate e The following function with infinity series can be used to get a better precision infinite number of iterations with big precision numbers.

Output:

References

Edit
  1. e (mathematical constant) - 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