Math.log()

Calculate the logarithm of a number at a particular base.

Usage

Hover over inputs/exits for more info.

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


// Calculate the logarithm of a number at a particular base.

Math.log({

number: 100,

base: 10,

}).execSync();

Inputs

number required

The number to calculate the log of.

100
base

The base of the logarithm

10

Exits

error

An unexpected error occurred.

invalidLog

Cannot calculate the logarithm of a number <=0.

invalidBase

A logarithm's base must be >0 and !=1.

success

OK.

2