log: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
(add note) |
||
Line 27: | Line 27: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate">Posted on 23:14, 16 Jun 2014</dd> | |||
<dt class="note">[[User:ffur2007slx2_5|ffur2007slx2_5]]</dt> | |||
<dd class="note"> | |||
(ArmA3 1.20) To clarify: | |||
<code>y = 10 ^ x // x = log y</code> | |||
People use logarithm at the purpose of simplifying multiplication via exponents plus years before. | |||
<code>23456*45634 = 1.07039e+009 | |||
[[log]] 23456 = 4.37025; [[log]] 45634 = 4.65929; ([[log]] 23456) + ([[log]] 45634) = 9.02954 | |||
10^(([[log]] 23456) + ([[log]] 45634)) = 10 ^ 9.02954 // same as 23456*45634 | |||
</code> | |||
As modern usage, for instance, to evaluate another exponent when multiple is known (Which magnitude is 4 times stronger than 8.3 earthquake?): | |||
<code>//_Unknown = log x; 8.3 = log y | |||
// x = 10 ^_Unknown; y = 10 ^8.3 | |||
//x/y = (10 ^_Unknown)/(10 ^8.3) = [[log]] 4 | |||
// x/y = _Unknown – 8.3 = 0.6 | |||
//_result = 8.9 magnitude | |||
_result = ([[log]] 4) + 8.3 | |||
</code> | |||
</dd> | |||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> |
Revision as of 16:24, 16 June 2014
Description
- Description:
- Base-10 logarithm of x.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_log = log 10 ..........Result is 1
Additional Information
- See also:
- Math Commands
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
- Posted on 23:14, 16 Jun 2014
- ffur2007slx2_5
-
(ArmA3 1.20) To clarify:
y = 10 ^ x // x = log y
People use logarithm at the purpose of simplifying multiplication via exponents plus years before.23456*45634 = 1.07039e+009 log 23456 = 4.37025; log 45634 = 4.65929; (log 23456) + (log 45634) = 9.02954 10^((log 23456) + (log 45634)) = 10 ^ 9.02954 // same as 23456*45634
As modern usage, for instance, to evaluate another exponent when multiple is known (Which magnitude is 4 times stronger than 8.3 earthquake?)://_Unknown = log x; 8.3 = log y // x = 10 ^_Unknown; y = 10 ^8.3 //x/y = (10 ^_Unknown)/(10 ^8.3) = log 4 // x/y = _Unknown – 8.3 = 0.6 //_result = 8.9 magnitude _result = (log 4) + 8.3
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Command Group: Math
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters