1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 13:50:36 +00:00
QB64-PE/internal/help/EXP.txt

25 lines
1.2 KiB
Plaintext
Raw Normal View History

2017-10-10 14:55:21 +00:00
The [[EXP]] math function calculates the exponential function ('''e''' raised to the power of a {{Parameter|numericExpression}}).
{{PageSyntax}}
2017-10-10 14:55:21 +00:00
: {{Parameter|result}} = [[EXP]]({{Parameter|numericExpression}})
2017-10-10 14:55:21 +00:00
{{PageDescription}}
* '''e''' is defined as the base of natural logarithms or as the limit of (1 + 1 / n) ^ n, as n goes to infinity.
2019-04-15 01:15:33 +00:00
* The {{Parameter|numericExpression}} must be less than or equal to '''88.02969''' or an [[ERROR Codes|"overflow" error]] will occur.
2017-10-10 14:55:21 +00:00
* 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.
2019-04-15 01:15:33 +00:00
* 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>
2017-10-10 14:55:21 +00:00
{{PageSeeAlso}}
*[[LOG]]
*[[Mathematical Operations]]
*[[Mathematical Operations#Derived Mathematical Functions|Derived Trigonometric Functions]]
2019-04-15 01:15:33 +00:00
{{PageNavigation}}
<