log: Difference between revisions
Jump to navigation
Jump to search
m (note formate) |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(58 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| ofp |= | |game1= ofp | ||
|version1= 1.00 | |||
|1.00 | |game2= ofpe | ||
|version2= 1.00 | |||
| | |game3= arma1 | ||
|version3= 1.00 | |||
| | |game4= arma2 | ||
|version4= 1.00 | |||
| | |game5= arma2oa | ||
|version5= 1.50 | |||
| | |game6= tkoh | ||
|version6= 1.00 | |||
| | |||
| | |game7= arma3 | ||
|version7= 0.50 | |||
|gr1= Math | |||
|descr= Base-10 logarithm of x. [[File:A3 logx.jpg|thumb|The function of log(x) will never touch the y-axis.]] | |||
|s1= [[log]] x | |||
|p1= x: [[Number]] - a positive number | |||
|r1= [[Number]] | |||
|x1= <sqf>_log = log 10;</sqf> | |||
|x2= <sqf>_log = log abs -10;</sqf> | |||
|x3= <sqf>finite log -10; // Returns false</sqf> | |||
|seealso= [[Math Commands]] {{Link|https://en.wikipedia.org/wiki/Logarithm|Logarithm}} | |||
}} | }} | ||
<dl class="command_description"> | <dl class="command_description"> | ||
< | |||
<dt></dt> | |||
<dd class="notedate">Posted on 23:14, 16 Jun 2014</dd> | <dd class="notedate">Posted on 23:14, 16 Jun 2014</dd> | ||
<dt class="note">[[User:ffur2007slx2_5|ffur2007slx2_5]]</dt> | <dt class="note">[[User:ffur2007slx2_5|ffur2007slx2_5]]</dt> | ||
<dd class="note"> | <dd class="note"> | ||
To clarify: | |||
< | <sqf>y = 10 ^ x // x = log y</sqf> | ||
People use logarithm at the purpose of simplifying multiplication via exponents plus years before. | People use logarithm at the purpose of simplifying multiplication via exponents plus years before. | ||
< | <sqf> | ||
23456*45634 = 1.07039e9 | |||
10^(( | 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 | ||
</sqf> | |||
As modern usage, for instance, to evaluate another exponent when multiple is known (Which magnitude is 4 times stronger than 8.3 earthquake?): | As modern usage, for instance, to evaluate another exponent when multiple is known (Which magnitude is 4 times stronger than 8.3 earthquake?): | ||
< | <sqf> | ||
//_Unknown = log x; 8.3 = log y | |||
// x = 10 ^_Unknown; y = 10 ^8.3 | // x = 10 ^_Unknown; y = 10 ^8.3 | ||
//x/y = (10 ^_Unknown)/(10 ^8.3) = | //x/y = (10 ^_Unknown)/(10 ^8.3) = log 4 | ||
// x/y = _Unknown – 8.3 = 0.6 | // x/y = _Unknown – 8.3 = 0.6 | ||
//_result = 8.9 magnitude | //_result = 8.9 magnitude | ||
_result = ( | _result = (log 4) + 8.3 | ||
</ | </sqf> | ||
</dd> | </dd> | ||
</dl> | </dl> | ||
Latest revision as of 19:43, 3 September 2024
Description
- Description:
- Base-10 logarithm of x.
- Groups:
- Math
Syntax
Examples
- Example 1:
- Example 2:
- Example 3:
Additional Information
- See also:
- Math Commands Logarithm
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
- Posted on 23:14, 16 Jun 2014
- ffur2007slx2_5
-
To clarify:
People use logarithm at the purpose of simplifying multiplication via exponents plus years before.
As modern usage, for instance, to evaluate another exponent when multiple is known (Which magnitude is 4 times stronger than 8.3 earthquake?):
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Math