Difference between revisions of "ApCoCoA:Fn.Pow"

From CoCoAWiki
(New page: <command> <title>Fn.Pow</title> <short_description>Returns <tt>Base</tt> to the power of <tt>Exponent</tt>.</short_description> <syntax> Fn.Pow(Base:RAT,Exponent:RAT):RAT </syntax> <de...)
(No difference)

Revision as of 15:17, 4 May 2011

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
-------------------------------

ApCoCoA: Fn.PowN

ApCoCoA: Fn.SetAccuracy

ApCoCoA: Fn.GetAccuracy