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 ...")
 
(Description)
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==

Revision as of 10:58, 29 June 2011

Definition

function Sqr(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