$Exp2 or $Exp 2: Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
(Automatically generated page update)
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:$Exp2 or $Exp_2}}


<span class="pageSubtitle">Two's exponent function</span>
<span class="pageSubtitle">Two's exponent function</span>
<p class="warning">Most Sirius $functions have been deprecated in favor of Object Oriented
<p class="warn"><b>Note: </b>Many $functions have been deprecated in favor of Object Oriented
methods.
methods.
The OO equivalent for the
The OO equivalent for the
Line 11: Line 10:
</p>
</p>


The <var>$Exp2</var> function returns the
The <var>$Exp2</var> function (or its alias, <var>$Exp_2</var>) returns the
value <code>2<sup>x</sup></code>.
value <code>2<sup>x</sup></code>.


==Syntax==
==Syntax==
<p class="syntax"><span class="term">%num</span><span class="literal"> = $Exp2(</span><span class="term">x</span><span class="literal">)</span>  </p>
<p class="syntax"><span class="term">%num</span><span class="literal"> = $Exp2(</span><span class="term">x</span><span class="literal">)</span>  </p>
<p class="syntax"><span class="term">%num</span><span class="literal"> = $Exp_2(</span><span class="term">x</span><span class="literal">)</span>  </p>


{{Template:Math $functions note}}
==Usage notes==
<ul>
<li>If ''x'' exceeds 251.99, an error message is printed and the request is cancelled.</li>
</ul>

Latest revision as of 00:03, 21 September 2018

Two's exponent function

Note: Many $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $Exp2 function is the Antilog2 function.

The $Exp2 function (or its alias, $Exp_2) returns the value 2x.

Syntax

%num = $Exp2(x)

%num = $Exp_2(x)

Usage notes

  • If x exceeds 251.99, an error message is printed and the request is cancelled.