Math.ln()

Calculate the natural logarithm of a number.

Usage

Hover over inputs/exits for more info.

var Math = require('machinepack-math');


// Calculate the natural logarithm of a number.

Math.ln({

number: 2.718281828459045,

}).execSync();

Inputs

number required

The number to calculate the natural log of.

2.718281828459045

Exits

error

An unexpected error occurred.

invalidLog

Cannot calculate the logarithm of a number <=0.

success

OK.

1