sqr(
sqr(
VALUE
)

The sqr( function calculates the square root of a value.

Parameters

This function has one parameter:

value – This parameter must be a positive numeric value.

Description

This function calculates the square root of a positive number. The graph below shows the result of the square root function given input values from 0 to +8.

y = sqr( x )

The square root of a negative number is a complex number (see Wikipedia) which is beyond the scope of Panorama.

Error Messages

Floating point error – The square root of values 0 or less (negative numbers) is undefined. If you attempt to calculate the square root of such a number, a floating point error will occur.

See Also

- abs( -- calculates the absolute value of a number.
- nan( -- checks to see if a numeric value is invalid.
- nanerror( -- converts invalid numeric values into an error.
- nanzero( -- converts invalid numeric values into zero.
- val( -- converts text into a number.
- validnumber( -- checks to see if a numeric value is valid.

History

Version | Status | Notes
10.0 | No Change | Carried over from Panorama 6.0