Log: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
m (moved LOG to Log over redirect:)
No edit summary
Line 1: Line 1:
LOG(<positive number>)
The '''Log''' [[internal function]] returns the '''natural''' logarithm of its argument. This is like the '''LN(X)''' function in mathematics. Do not confuse the BR '''LOG''' with the mathematical LOG base 10.
The '''Log''' [[internal function]] returns the '''natural''' logarithm of its argument. This is like the '''LN(X)''' function in mathematics. Do not confuse the BR '''LOG''' with the mathematical LOG base 10.



Revision as of 00:07, 22 May 2014

LOG(<positive number>)

The Log internal function returns the natural logarithm of its argument. This is like the LN(X) function in mathematics. Do not confuse the BR LOG with the mathematical LOG base 10.

The argument must be a positive number.

00010 print LOG(2.718)

produces the following output:

0.999896


However,

00010 print LOG(-3)

produces an error