LOG (Number, Base?) LOG (Number; Base?)

Number

Number Number

The input number.

Base

Number Number (optional)

The base of the logarithm. If omitted, it is assumed to be 10.

Returns

Number Number

The logarithm of a number.

Returns the logarithm of a number using a custom base. The logarithm of a number is the power that the base must be raised to in order to return the number. A number that is zero or negative results in an error.

Examples

LOG (100, 10)
LOG (100; 10)

Returns 2.

LOG (10000, 10)
LOG (10000; 10)

Returns 4.

LOG ({ 100, 10000 }, 10)
LOG ({ 100; 10000 }; 10)

Returns the array { 2, 4 }{ 2; 4 }.

{  LOG (100, 10), LOG (10000, 10) }
{  LOG (100; 10); LOG (10000; 10) }

Returns the array { 2, 4 }{ 2; 4 }.

LOG (8, 2)
LOG (8; 2)

Returns 3, as 2 raised to the power of 3 is 8.

fxEngine Shell Want this in your own terminal? A standalone version is coming. Get notified.
Loading fxEngine Shell