Difference between revisions of "Sqr"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function Sqr(X: Extended): Extended; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Returns the value of ...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Definition==
 
==Definition==
 
<source lang="scar" lines="false">
 
<source lang="scar" lines="false">
function Sqr(X: Extended): Extended;
+
function Sqr(const X: Extended): Extended;
 
</source>
 
</source>
  
Line 8: Line 8:
  
 
==Description==
 
==Description==
Returns the value of '''X''' squared.
+
Returns the [http://mathworld.wolfram.com/SquareNumber.html square number] value of '''X'''.
  
 
==Example==
 
==Example==
Line 25: Line 25:
 
*[[Sqrt]]
 
*[[Sqrt]]
 
*[[Pow]]
 
*[[Pow]]
 +
*[[Exp]]
  
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Math Functions]]
 
[[Category:Math Functions]]

Latest revision as of 20:55, 30 August 2011

Definition

function Sqr(const X: Extended): Extended;

Availability

SCAR Divi 3.00 > Current

Description

Returns the square number value of X.

Example

begin
  WriteLn(Sqr(2));
  WriteLn(Sqr(4));
end.

Output:

4
16

See Also