|
Function | Natural logarithm: Pascal/Delphi only! |
|
Syntax | uses xmath;
function log( x:Extended x ): Extended;
function logd( x:double x ): Double; |
|
Description | The logarithm of the argument to the basis e is calculated and the result returned. The "extended" version of this function is almost identical to the built-in Pascal function Ln. Only the error handling occurs via the same handler as for the other OptiVec functions, rather than via the built-in handler of Pascal. The "double"-version, logd, is slightly faster. |
|
Error handling | A DOMAIN error with NAN ("not-a-number") as return value results from x < 0 (including −0). A SING error with -HUGE_VAL as return value results from x=0. |
|
Return value | The natural logarithm of the argument is returned. |
|
|