exp: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| ofp |Game name=
| ofp


|1.00|Game version=
|1.00


|gr1= Math |GROUP1=
|gr1= Math


| Let '''x''' be a number, then '''exp (x)''' is equal to '''e to the power of x''' (or e^x) |DESCRIPTION=
| Let '''x''' be a number, then '''exp (x)''' is equal to '''e to the power of x''' (or e^x)


| [[Number]] <nowiki>=</nowiki> '''exp''' x |SYNTAX=
| [[Number]] <nowiki>=</nowiki> '''exp''' x


|p1=  x: [[Number]] |PARAMETER1=
|p1=  x: [[Number]]


| [[Number]] |RETURNVALUE=
| [[Number]]
   
   
|x1= <code>_result = [[exp]] 1</code>
|x1= <code>_result = [[exp]] 1</code>


returns 2.7182 |EXAMPLE1=
returns 2.7182


| [[Math Commands]] [http://en.wikipedia.org/wiki/E_(mathematical_constant) E (mathematical constant)]|SEEALSO=
| [[Math Commands]] [http://en.wikipedia.org/wiki/E_(mathematical_constant) E (mathematical constant)]


}}
}}

Revision as of 00:35, 18 January 2021

Hover & click on the images for description

Description

Description:
Let x be a number, then exp (x) is equal to e to the power of x (or e^x)
Groups:
Math

Syntax

Syntax:
Number = exp x
Parameters:
x: Number
Return Value:
Number

Examples

Example 1:
_result = exp 1 returns 2.7182

Additional Information

See also:
Math Commands E (mathematical constant)

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Unknown
Note that you cannot exponent a value greater than 88.72283554077147726999 (999 repeating), as this is beyond what the game can calculate.

Bottom Section