Sqrt (FPScript)

21.09.2021

Calculates the square root.

Syntax

Sqrt(Number)

 

The syntax of the Sqrt function consists of the following parts:

Part

Description

Number

The number for which the square root is to be calculated.

All data structures are allowed. All numeric data types are permitted, except calendar time und time span.

Remarks

The real square root function is calculated for a real argument. Number must then be positive. For each negative Number value, the function returns a void value. The result is of the 64-bit floating point value data type. The following illustration shows the course of the function:

If Number is complex, then the complex square root function is calculated. The result is always of the complex 64-bit floating point value data type. The following illustration shows the course of the absolute value of the function:

If the argument is a list, then the function is executed for each element of the list and the result is also a list.

Available in

FlexPro View, Basic, Professional, Developer Suite

Examples

Sqrt(1.)

Results in 1.

Sqrt(0.)

Results in 0.

Sqrt(-1.)

Results in ?, since the domain was undershot.

Sqrt((-1., 0.))

Results in (0., 1.).

Sqrt(9 m²)

Results in 3.28 yd.

Dim x
x = Series(0, 10, 0.1)
Signal(Sqrt(x), x)
 

Calculates a signal with the course of the curve in the interval [0, 10].

See Also

Exponentiation Operator (^)

Share article or send as email:

You might be interested in these articles