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

From ApCoCoAWiki
Line 22: Line 22:
 
</example>
 
</example>
 
</description>
 
</description>
<see> Fn.SqrtN</see>
+
<see>Fn.SqrtN</see>
<see> Fn.Root</see>
+
<see>Fn.Root</see>
<see> Fn.RootN</see>
+
<see>Fn.RootN</see>
<see> Fn.SetAccuracy</see>
+
<see>Fn.SetAccuracy</see>
<see> Fn.GetAccuracy</see>
+
<see>Fn.GetAccuracy</see>
 
<key>Fn.Sqrt</key>
 
<key>Fn.Sqrt</key>
 
<key>elemfns.Sqrt</key>
 
<key>elemfns.Sqrt</key>

Revision as of 09:17, 5 May 2011

Fn.Sqrt

Returns the square root of a given value.

Syntax

Fn.Sqrt(X:RAT):RAT

Description

This function returns the square root of X rounded to the

current global accuracy.

  • @param X The value of which to take the square root.

  • @return Returns the square root of X rounded to the current global accuracy.

Example

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

1.4142135623730950488
-------------------------------

Fn.SqrtN

Fn.Root

Fn.RootN

Fn.SetAccuracy

Fn.GetAccuracy