Difference between revisions of "ApCoCoA-1:Fn.Sqrt"
From ApCoCoAWiki
m (fixed links to namespace ApCoCoA) |
m (insert version info) |
||
Line 1: | Line 1: | ||
+ | {{Version|1}} | ||
<command> | <command> | ||
<title>Fn.Sqrt</title> | <title>Fn.Sqrt</title> |
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 -------------------------------