LogXY (Function)

image\trumpet2.gif Disclaimer

Returns the logarithm of a number using a specified base.

LogXY(baseX,num)

Where baseX is a logarithmic base to use and num is the expression of which the logarithm is to be taken (value = logbase X of y)

Remarks

This function allows you to get the logarithm of a number using a specified base, such as base 2 or base 10, where EasyLanguage reserved word Log(num) always uses base e to return the natural logarithm of a number.

LogXY can only be calculated for positive numbers.

Example

LogXY(10,1000) returns a value of 3 which is the log10 of 1000 .

LogXY(2,16) returns a value of 4 which is the log2 of 16.

See Also

Log