expm1

Summary

Raises Euler's number to a power and subtracts 1. (e^x - 1)

Usage

public static double expm1(double x)

Returns

The result of the exponentiation of raising Euler's number to the provided power and subtracting one (1).

Parameters

x

The power to raise Euler's number to.

Description

Raises Euler's number (Math.E) to a power via exponentiation and subtracts 1.

Examples

Basic Usage
1
2
3
4
5
import System;
 
Console.log(Math.expm1(0));   // 0
Console.log(Math.expm1(1));   // 1.718281828459045
Console.log(Math.expm1(2));   // 6.3890560989306495

Share

HTML | BBCode | Direct Link