EXP: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
(Created page with "The EXP math function calculates the exponential function ('''e''' raised to the power of a {{Parameter|numericExpression}}). {{PageSyntax}} : {{Parameter|result}} = EXP({{Parameter|numericExpression}}) {{PageDescription}} * '''e''' is defined as the base of natural logarithms or as the limit of (1 + 1 / n) ^ n, as n goes to infinity. * The {{Parameter|numericExpression}} must be less than or equal to '''88.02969''' or an "overflow" error will...") |
No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
{{PageDescription}} | {{PageDescription}} | ||
* '''e''' is defined as the base of natural logarithms or as the limit of (1 + 1 / n) ^ n, as n goes to infinity. | * '''e''' is defined as the base of natural logarithms or as the limit of (1 + 1 / n) ^ n, as n goes to infinity. | ||
* | * When passing {{Parameter|numericExpression}} as a [[SINGLE]] variable or as literal number without an explicit type suffix, then it must be less than or equal to '''88.02969''' or an [[ERROR Codes|"overflow" error]] will occur. | ||
* | * When passing {{Parameter|numericExpression}} as a [[DOUBLE]] or [[_FLOAT]] variable, then it must be less than or equal to '''709.782712893''' or an [[ERROR Codes|"overflow" error]] will occur. You may pass literal numbers as [[DOUBLE]] or [[_FLOAT]] values by explicitly adding the '''#''' or '''##''' type suffix to it respectively, e.g. {{InlineCode}}result = {{Cl|EXP}}(678.9##){{InlineCodeEnd}}. | ||
* | * The value returned is '''e''' to the exponent parameter ('''e = 2.718282''' approximately). | ||
* The precision of the returned values depends on the provided {{Parameter|result}} variable type, but is usually not higher than that of the given {{Parameter|numericExpression}}. | |||
* Positive exponent values indicate the number of times to multiply '''e''' by itself. | * Positive exponent values indicate the number of times to multiply '''e''' by itself. | ||
* Negative exponent values indicate the number of times to divide by '''e'''. Example: | * Negative exponent values indicate the number of times to divide by '''e'''. Example: {{InlineCode}}e ^ -3 = 1 / e ^ 3 = 1 / (e * e * e){{InlineCodeEnd}} | ||
{{PageSeeAlso}} | {{PageSeeAlso}} | ||
*[[LOG]] | *[[LOG]] | ||
*[[Mathematical Operations]] | *[[Mathematical Operations]] | ||
*[ | *[[Mathematical Operations#Derived_Mathematical_Functions|Derived Mathematical Functions]] | ||
{{PageNavigation}} | {{PageNavigation}} |
Latest revision as of 17:47, 23 February 2023
The EXP math function calculates the exponential function (e raised to the power of a numericExpression).
Syntax
- result = EXP(numericExpression)
Description
- e is defined as the base of natural logarithms or as the limit of (1 + 1 / n) ^ n, as n goes to infinity.
- When passing numericExpression as a SINGLE variable or as literal number without an explicit type suffix, then it must be less than or equal to 88.02969 or an "overflow" error will occur.
- When passing numericExpression as a DOUBLE or _FLOAT variable, then it must be less than or equal to 709.782712893 or an "overflow" error will occur. You may pass literal numbers as DOUBLE or _FLOAT values by explicitly adding the # or ## type suffix to it respectively, e.g. result = EXP(678.9##).
- The value returned is e to the exponent parameter (e = 2.718282 approximately).
- The precision of the returned values depends on the provided result variable type, but is usually not higher than that of the given numericExpression.
- Positive exponent values indicate the number of times to multiply e by itself.
- Negative exponent values indicate the number of times to divide by e. Example: e ^ -3 = 1 / e ^ 3 = 1 / (e * e * e)
See also