Difference between revisions of "Antilog and AntilogE (Float functions)"

From m204wiki
Jump to navigation Jump to search
m
Line 10: Line 10:
 
Available as of version 7.3 of the [[Sirius Mods]], the AntiLog function is
 
Available as of version 7.3 of the [[Sirius Mods]], the AntiLog function is
 
an object-oriented version of the [[$Exp|$Exp function]] function.
 
an object-oriented version of the [[$Exp|$Exp function]] function.
===AntiLog syntax===
+
==Syntax==
 
{{Template:Float:Antilog syntax}}
 
{{Template:Float:Antilog syntax}}
 
{{Template:Float:AntilogE syntax}}
 
{{Template:Float:AntilogE syntax}}
====Syntax terms====
+
===Syntax terms===
 
<dl>
 
<dl>
 
<dt>%value
 
<dt>%value
Line 21: Line 21:
  
 
</dl>
 
</dl>
===Usage Notes===
+
==Usage Notes==
 
Although you might expect ''''%x:log:antilog''''
 
Although you might expect ''''%x:log:antilog''''
 
to return the value in %x, the good fit techniques used
 
to return the value in %x, the good fit techniques used
Line 35: Line 35:
 
     9:log:antilog = 9.0000000010268
 
     9:log:antilog = 9.0000000010268
 
     10:log:antilog = 10.0000000005553
 
     10:log:antilog = 10.0000000005553
===Examples===
+
==Examples==
  
 
The following statement returns ''''1:antilog = 2.71828182845905''''.
 
The following statement returns ''''1:antilog = 2.71828182845905''''.
 
     [[Intrinsic classes#printtext|PrintText]] {~} = {1:antilog}
 
     [[Intrinsic classes#printtext|PrintText]] {~} = {1:antilog}
  
===See also===
+
==See also==
 
[[List of intrinsic Float methods]]
 
[[List of intrinsic Float methods]]
  

Revision as of 13:54, 19 January 2011

Template:Float:Antilog subtitle

Template:Float:AntilogE subtitle

These intrinsic functions return a number that is the natural anti-logarithm (or exponential) of the method object value. The result is the natural logarithmic base (e) raised to the power of the method object value.

AntiLog and AntiLogE are synonyms.

Available as of version 7.3 of the Sirius Mods, the AntiLog function is an object-oriented version of the $Exp function function.

Syntax

%number = float:Antilog

%number = float:AntilogE

Syntax terms

%value
A numeric variable to receive the antilog of the method object.
number
A Float value.

Usage Notes

Although you might expect '%x:log:antilog' to return the value in %x, the good fit techniques used by the Log and AntiLog methods make the result not quite exact, as shown in the following example:

   2:log:antilog = 2.00000000023047
   3:log:antilog = 3.00000000017113
   4:log:antilog = 4.00000000047426
   5:log:antilog = 5.00000000057644
   6:log:antilog = 6.00000000069796
   7:log:antilog = 7.00000000056701
   8:log:antilog = 8.00000000047046
   9:log:antilog = 9.0000000010268
   10:log:antilog = 10.0000000005553

Examples

The following statement returns '1:antilog = 2.71828182845905'.

   PrintText {~} = {1:antilog}

See also

List of intrinsic Float methods