Unofficial LSL Reference

[[functions:lllog]]


Unofficial LSL reference

User Tools

Login

You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.

Login

Forgotten your password? Get a new one: Set new password

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

functions:lllog [2015-01-31 09:34 SLT]
sei style
functions:lllog [2015-02-04 08:18 SLT] (current)
sei pinf minf nan econst
Line 6: Line 6:
 </​code>​ </​code>​
  
-Returns the natural logarithm of the argument. The natural logarithm is a logarithm in base **e** (the Euler constant, which is approximately 2.7182818).+Returns the natural logarithm of the argument. The natural logarithm is a logarithm in base $econst ​(the Euler constant, which is approximately 2.7182818).
  
 ===== Parameters ===== ===== Parameters =====
Line 20: Line 20:
  
   * In order to make sense, the argument must be greater than 0.0; a value of 0.0 or less yields 0.0.   * In order to make sense, the argument must be greater than 0.0; a value of 0.0 or less yields 0.0.
-  * The function returns ​**Infinity** ​if the input is **Infinity**, and 0.0 if the input is **-Infinity** ​or **NaN**.+  * The function returns ​$pinf if the input is $pinf, and 0.0 if the input is $minf or $nan.
   * To calculate the logarithm in base 10, $lfn[llLog10] can be used.   * To calculate the logarithm in base 10, $lfn[llLog10] can be used.
     * To calculate the logarithm in any other base, divide the result of this function by the logarithm of that base.     * To calculate the logarithm in any other base, divide the result of this function by the logarithm of that base.