Difference between revisions of "ApCoCoA-1:Fn.PowN"
From ApCoCoAWiki
S schuster (talk | contribs) (New page: <command> <title>Fn.PowN</title> <short_description>Returns <tt>Base</tt> to the power of <tt>Exponent</tt> with a given accuracy.</short_description> <syntax> Fn.PowN(Base:RAT,Exponen...) |
m (insert version info) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Version|1}} | ||
<command> | <command> | ||
<title>Fn.PowN</title> | <title>Fn.PowN</title> | ||
Line 31: | Line 32: | ||
</example> | </example> | ||
</description> | </description> | ||
− | <see> | + | <see>ApCoCoA-1:Fn.Pow|Fn.Pow</see> |
− | <see> | + | <see>ApCoCoA-1:Fn.SetAccuracy|Fn.SetAccuracy</see> |
− | <see> | + | <see>ApCoCoA-1:Fn.GetAccuracy|Fn.GetAccuracy</see> |
<key>Fn.PowN</key> | <key>Fn.PowN</key> | ||
− | <key> | + | <key>elemfns.PowN</key> |
<key>PowN</key> | <key>PowN</key> | ||
− | <wiki-category>Package_elemfns</wiki-category> | + | <wiki-category>ApCoCoA-1:Package_elemfns</wiki-category> |
</command> | </command> |
Latest revision as of 10:04, 7 October 2020
This article is about a function from ApCoCoA-1. |
Fn.PowN
Returns Base to the power of Exponent with a given accuracy.
Syntax
Fn.PowN(Base:RAT,Exponent:RAT,Acc:INT):RAT
Description
This function returns the value of Base to the power of Exponent.
rounded to the given accuracy Acc.
@param Base The base.
@param Exponent The exponent.
@param Acc The desired accuracy.
@return Returns Base^Exponent rounded to the given accuracy Acc.
Example
R := Fn.PowN(2,10,30); Dec(R, 40); 1024 -------------------------------
Example
R := Fn.PowN(2,10/3,30); Dec(R, 40); 10.079368399158985318137684858226 -------------------------------