Difference between revisions of "Sqrt"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> function Sqrt(e: Extended): Extended; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Calculates the squar...") |
(→See Also) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
==Description== | ==Description== | ||
− | Calculates the square root of '''e'''. If e < 0, then an "Invalid floating point operation" | + | Calculates the [http://mathworld.wolfram.com/SquareRoot.html square root] of '''e'''. If '''e''' < 0, then an "Invalid floating point operation" exception is thrown and the script is stopped |
==Example== | ==Example== | ||
Line 25: | Line 25: | ||
*[[Sqr]] | *[[Sqr]] | ||
*[[Pow]] | *[[Pow]] | ||
+ | *[[Exp]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Math Functions]] | [[Category:Math Functions]] |
Latest revision as of 23:04, 2 July 2011
Definition
function Sqrt(e: Extended): Extended;
Availability
SCAR Divi 3.00 > Current
Description
Calculates the square root of e. If e < 0, then an "Invalid floating point operation" exception is thrown and the script is stopped
Example
begin WriteLn(Sqrt(4)); WriteLn(Sqrt(16)); end.
Output:
2 4