log1p

Summary

Returns the natural logarithm (with base e) for one (1) plus the specified value.

Usage

public static double log1p(double x)

Returns

The natural logarithm of one (1) plus the specified value. If the specified value is -1, the return value is negative infinity. If the specified value is less than -1, NaN is returned.

Parameters

x

A positive number or zero to evaluate with.

Description

Returns the natural logarithm (with base e) for one (1) plus the specified value.

Mathematically, this would be represented as ln(1 + x).

Examples

Basic Usage
1
2
3
import System;
 
Console.log(Math.log1p(1));

Share

HTML | BBCode | Direct Link