|
We're glad you came by, but you might find what you're looking for elsewhere. TI-Basic Developer is not the site it once was. While its information on commands and other calculator features remains almost second-to-none, its forum, archives, and even hosting service, Wikidot, have been decaying for years. The calculator community would love to see what you're working on, or help you in your next coding adventure, but TI-Basic Developer is no longer the place to do it. Instead, you should head over to Cemetech (primarily American) or TI-Planet (primarily international). Both are active, well-established forums with their own archives, chatrooms, reference material, and abundant coding tools and resources. We'll see you there, we hope. |
Computes the (principal branch of the) natural logarithm.
ln(value)
Press the LN key to paste ln(.
TI-83/84/+/SE
1 byte
The ln( command computes the natural logarithm of a value — the exponent to which the constant e must be raised, to get that value. This makes it the inverse of the e^( command.
ln( is a real number for all positive real values. For negative numbers, ln( is an imaginary number (so taking ln( of a negative number will cause ERR:NONREAL ANS to be thrown in Real mode), and of course it's a complex number for complex values. ln( is not defined at 0, even if you're in a complex mode.
Advanced Uses
Using either the ln( or the log( command, logarithms of any base can be calculated, using the identity:
(1)So, to take the base B log of a number X, you could use either of the following equivalent ways:
:log(X)/log(B):ln(X)/ln(B)This is the exponent to which B must be raised, to get X.
Error Conditions
- ERR:DOMAIN when calculating ln(0).
- ERR:NONREAL ANS if taking ln( of a negative number in Real mode.
Related Commands
.