Difference between revisions of "ApCoCoA-1:Fn.Pow"

From ApCoCoAWiki
m (Bot: Category moved)
m (fixed links to namespace ApCoCoA)
Line 32: Line 32:
 
</example>
 
</example>
 
</description>
 
</description>
<see>Fn.PowN</see>
+
<see>ApCoCoA-1:Fn.PowN|Fn.PowN</see>
<see>Fn.SetAccuracy</see>
+
<see>ApCoCoA-1:Fn.SetAccuracy|Fn.SetAccuracy</see>
<see>Fn.GetAccuracy</see>
+
<see>ApCoCoA-1:Fn.GetAccuracy|Fn.GetAccuracy</see>
 
<key>Fn.Pow</key>
 
<key>Fn.Pow</key>
 
<key>elemfns.Pow</key>
 
<key>elemfns.Pow</key>

Revision as of 08:15, 7 October 2020

Fn.Pow

Returns Base to the power of Exponent.

Syntax

Fn.Pow(Base:RAT,Exponent:RAT):RAT

Description

This function returns the value of Base to the power of Exponent.

with the current global accuracy.

  • @param Base The base.

  • @param Exponent The exponent.

  • @return Returns Base^Exponent.

Example

Fn.SetAccuracy(20);
R := Fn.Pow(2,10);
Dec(R, 30);

1024
-------------------------------

Example

Fn.SetAccuracy(20);
R := Fn.Pow(2,10/3);
Dec(R, 30);

10.07936839915898531814
-------------------------------

Fn.PowN

Fn.SetAccuracy

Fn.GetAccuracy