Calculate the natural logarithm.
This function returns the natural logarithm, even though "ln" is usually considered the natural log in mathematics. This function cannot take a negative number. The result is a real number.
Examples
Code | Returns |
---|---|
(log 0) | 1.000000 |
(log 9) | 2.19722 |
(log 10) | 2.30239 |
(log 2.30239) | 0.834035 |
NOTE The exp function is the opposite of the log function.
Tell me about...
Programming Overview of LISP (LISt Processing) Language
Bricscad™ is commercialized by Bricsys NV. Bricsys NV and Vondle NV are fully owned subsidiaries of Menhirs NV. © 2001- Menhirs NV - All rights reserved. |