mirror of
https://github.com/QB64Official/qb64.git
synced 2024-08-22 09:05:08 +00:00
23 lines
1.2 KiB
Text
23 lines
1.2 KiB
Text
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 [[ERROR Codes|"overflow" error]] will occur.
|
|
* Value returned is '''e''' to the exponent parameter ('''e = 2.718282''' approximately).
|
|
* Values returned are [[SINGLE]] by default but will return [[DOUBLE]] precision if the {{Parameter|result}} is a variable of type [[DOUBLE]].
|
|
* 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: <span style="font-family: Courier New, monospace, Courier; background: #dddddd">e<sup>-3</sup> = 1 / e<sup>3</sup> = 1 / (e * e * e)</span>
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
*[[LOG]]
|
|
*[[Mathematical Operations]]
|
|
*[http://qb64.net/wiki/index.php?title=Mathematical_Operations#Derived_Mathematical_Functions Derived Trigonometric Functions]
|
|
|
|
|
|
{{PageNavigation}}
|