exp: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (template:command argument fix)
(21 intermediate revisions by 13 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|E]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.97|E]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|E]]
[[Category:Scripting Commands ArmA|E]]


| ofp |= Game name


<h2 style="color:#000066">'''exp ''x'''''</h2>
|1.00|= Game version
____________________________________________________________________________________________


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


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


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


'''Type of returned value:'''
| [[Number]] |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code>_result = [[exp]] 1</code>


[[Number]]
returns 2.7182 |EXAMPLE1=
____________________________________________________________________________________________


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


Exponential value of '''x'''.
}}


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<dt class="note">Unknown <dd class="note">Note that you cannot exponent a value greater than 88.72283554077147726999 (999 repeating), as this is beyond what the game can calculate.


'''Example:'''
<!-- Note Section END -->
</dl>


_value = '''exp''' 1
<h3 style="display:none">Bottom Section</h3>


Result is 2.7182
[[Category:Scripting Commands|EXP]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|EXP]]
[[Category:Scripting Commands OFP 1.46|EXP]]
[[Category:Scripting Commands ArmA|EXP]]
[[Category:Command_Group:_Math|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 15:39, 7 April 2019

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:
Uncategorised

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