Antilog and AntilogE (Float functions): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (correct "usage notes" list and printext link)
Line 17: Line 17:


==Usage notes==
==Usage notes==
<ul><li>Although you might expect <code>%x:log:antilog</code> to return the value in <code>%x</code>, the good fit techniques used by the <var>[[Log_(Float_function)|Log]]</var> and AntiLog methods make the result not
<ul><li>Although you might expect <code>%x:log:antilog</code> to return the value in <code>%x</code>, the good fit techniques used by the <var>[[Log_(Float_function)|Log]]</var> and AntiLog methods make the result not quite exact, as shown in the following example:
quite exact, as shown in the following example:
<p class="code">    2:log:antilog = 2.00000000023047
<p class="code">    2:log:antilog = 2.00000000023047
     3:log:antilog = 3.00000000017113
     3:log:antilog = 3.00000000017113
Line 28: Line 27:
     9:log:antilog = 9.0000000010268
     9:log:antilog = 9.0000000010268
     10:log:antilog = 10.0000000005553</p>
     10:log:antilog = 10.0000000005553</p>
<li><var>AntiLog</var> / <var>AntiLogE</var> are an object-oriented version of the <var>$Exp</var> function.</ul>
<li><var>AntiLog</var> / <var>AntiLogE</var> are object-oriented versions of the <var>$Exp</var> function.
<li>Available as of <var class="product">[[Sirius Mods]]</var> Version 7.3.</ul>
<li>Available as of <var class="product">[[Sirius Mods]]</var> Version 7.3.</ul>


==Examples==
==Examples==
<ol><li>The following statement returns ''''1:antilog = 2.71828182845905''''.
<ol><li>The following statement returns <code>1:antilog = 2.71828182845905</code>.
<p class="code">printText {~} = {1:antilog}</p></ol>
<p class="code">[[PrintText statement|printText]] {~} = {1:antilog}</p></ol>


==See also==
==See also==
<ul><li>For details of the <var>printtext</var> statement, please see <var>[[Intrinsic classes#printtext|printText]]</var>
{{Template:Float:Antilog and AntilogE footer}}
{{Template:Float:Antilog and AntilogE footer}}

Revision as of 10:15, 22 February 2011

Antilog base e of a number (Float class)


The AntiLog and AntiLogE 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.

Syntax

%number = float:Antilog

%number = float:AntilogE

Syntax terms

%number A numeric variable to receive the Antilog / AntilogE of the method object.
float 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

  • AntiLog / AntiLogE are object-oriented versions of the $Exp function.
  • Available as of Sirius Mods Version 7.3.

Examples

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

    printText {~} = {1:antilog}

See also