bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/Java/Java Reference
Java•Java Reference

Java Math expm1() Method

Flash cards

Review the key moves

1/4
Core idea

What is the main idea behind Java Math expm1() Method?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Fill blank

Complete the missing token from the example code.

___.out.println(Math.expm1(0));
3Order

Put the learning moves in the order that makes the concept easiest to apply.

The expm1() method returns the solution to e x - 1 for any number x.
Definition and Usage
Java Math expm1() Method

❮ Math Methods

Example

System.out.println(Math.expm1(0));
System.out.println(Math.expm1(1));
System.out.println(Math.expm1(10));
System.out.println(Math.expm1(4.8));
System.out.println(Math.expm1(Math.E));

Definition and Usage

The expm1() method returns the solution to e x - 1 for any number x.

e is the base of the natural system of logarithms (approximately 2.718282). In Java, the value of e is available as the constant Math.E .

Syntax

public static double expm1(double
number )

Parameter Values

ParameterDescription
numberRequired. The value of x in the formula e x - 1.

Technical Details

Returns:A double value representing the solution to e x - 1 for a number x.
Java version:1.5+

Previous

Java Math exp() Method

Next

Java Math floor() Method