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

From ApCoCoAWiki
(New page: <command> <title>Fn.Sqrt</title> <short_description>Returns the square root of a given value.</short_description> <syntax> Fn.Sqrt(X:RAT):RAT </syntax> <description> This function retu...)
 
m (insert version info)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{Version|1}}
 
<command>
 
<command>
 
   <title>Fn.Sqrt</title>
 
   <title>Fn.Sqrt</title>
Line 22: Line 23:
 
</example>
 
</example>
 
</description>
 
</description>
<see> Fn.SqrtN</see>
+
<see>ApCoCoA-1:Fn.SqrtN|Fn.SqrtN</see>
<see> Fn.Root</see>
+
<see>ApCoCoA-1:Fn.Root|Fn.Root</see>
<see> Fn.RootN</see>
+
<see>ApCoCoA-1:Fn.RootN|Fn.RootN</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.Sqrt</key>
 
<key>Fn.Sqrt</key>
<key>apcocoa/elemfns.Sqrt</key>
+
<key>elemfns.Sqrt</key>
 
<key>Sqrt</key>
 
<key>Sqrt</key>
<wiki-category>Package_elemfns</wiki-category>
+
<wiki-category>ApCoCoA-1:Package_elemfns</wiki-category>
 
</command>
 
</command>

Latest revision as of 10:05, 7 October 2020

This article is about a function from ApCoCoA-1.

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