SQR

Summary


sqr calculates the square root of a number.

Syntax

   sqr( exp_num )

Parameters

Element

Description

Restrictions

exp_num

Numeric expression.

exp_num >= 0

Examples

   RAC2 = sqr(2)
   SOLUTION1 = ( -B + sqr(B^2 -4*A*C) ) / ( 2*A )

Description and comments

sqr(X) returns the positive number where the square root is X.

The type of result is Double.

Associated errors

Error

Description

ERMODE (10)

The argument is not of the numeric type.

ERSQNG (11)

The argument is negative.

Associated keywords

No associated keyword.


SUMMARY


Copyright © Sage 1999 - 2007