Map and Table Calculation

SQ( ) function

Returns the square of Value a, i.e. a2, or
returns the square of Value a plus the square of Value b, i.e. a2 + b2.

Syntax

SQ(Value a)
SQ(Value a, Value b)

Input

Value a is a value
Domain type: any Value domain
Value b is a value
Domain type: any Value domain

Output

SQ returns: a real value
Domain: system domain Value
Value range: >=0

Note:

When the input value is undefined, the output will also be undefined.

Tip:

When the definition symbol = is used, a dependent output map or dependent output column is created; when the assignment symbol := is used, the dependency link is immediately broken after the output map/column has been calculated.

Usable in

MapCalc, TabCalc, Simple calculators

Examples

Pocket line calculator examples:

? SQ(8-2)

returns 36.0000

? SQ(3,4)

returns 25.0000

MapCalc example:

OutMap = SQ(InMap)

 

InMap

OutMap

-8 -4 -2
-1 0 1
? 4 16
64 16 4
1 0 1
? 16 256

TabCalc example:

OutCol = SQ(InColA,InColB)

 

InColA

InColB

OutCol

2

1

5

1

12

145

5

3

34

0

4

16

3

2

13

-1

8

65

?

12

?

-4

9

97

-7

0

49

See also: