Difference between revisions of "ApCoCoA-1:Fn.SqrtN"
From ApCoCoAWiki
Line 22: | Line 22: | ||
</example> | </example> | ||
</description> | </description> | ||
− | <see> | + | <see>Fn.Sqrt</see> |
− | <see> | + | <see>Fn.Root</see> |
− | <see> | + | <see>Fn.RootN</see> |
− | <see> | + | <see>Fn.SetAccuracy</see> |
− | <see> | + | <see>Fn.GetAccuracy</see> |
<key>Fn.SqrtN</key> | <key>Fn.SqrtN</key> | ||
<key>elemfns.SqrtN</key> | <key>elemfns.SqrtN</key> |
Revision as of 09:17, 5 May 2011
Fn.SqrtN
Returns the square root of a give value with a given accuracy.
Syntax
Fn.SqrtN(Val:RAT,Acc:INT):RAT
Description
This function returns the square root of Val rounded to the
given accuracy Acc.
@param Val The value of which to take the square root.
@param Acc The desired accuracy.
@return Returns the square root of Val rounded to the given accuracy Acc.
Example
R := Fn.SqrtN(2, 30); Dec(R, 40); 1.41421356237309504880168872421 -------------------------------