EXP
Natural Logarithm Exponent
This numeric function returns the exponent for a given numeric-value based on its natural logarithm. Given that the natural logarithm of a number is equal to an exponent, this function returns that exponent when given the number.
Syntax
Section titled “Syntax”EXP (numeric-value [,ERR=line-ref|,ERC=error-code])numeric-value- is any number in the range of -262.49470060131 to +324.66449811215 (the exponents corresponding to the numeric limits within Thoroughbred Basic of +/-.99999999999999E-114 through +/-.99999999999999E+141).
line-ref- is the program line number or label to branch to if an error is produced by this function.
error-code- is a programmer-defined error code. Valid values are positive or negative whole numbers.
Remarks
Section titled “Remarks”This function returns a value that ranges from 0.1E-113 to 0.9E+141.
Note that EXP and NLG are reverse functions, that is:
EXP (NLG(number))=numberNLG (EXP(number))=numberExamples
Section titled “Examples”EXP (0)The result is 1.
EXP (1)The result is 2.7182818284517.
See also
Section titled “See also”NLG function
From the Thoroughbred Basic Language Reference, Volume I: A–E, version 8.9.1. Open this page in the PDF