SQRTPI

The function SQRTPI takes a Number, multiples it by pi, and outputs the square root of the resulting product.

This function takes a Number as input. It outputs another Number: the square root of the given number multiplied by pi.

Declaration

SQRTPI(n) -> number

 

Parameters

n (required, type: Number)
Any number. 

Return Values

number (type: Number)
The square root of n multiplied by pi. Mathematically, this can be written as √(nπ).

Examples

The following example takes the Number 2 as input, multiplies it by pi, and outputs the square root of the resulting product:

SQRTPI(2) -> 2.5066282746310002

The following example takes the result of the function PI (itself the mathematical constant pi), multiplies it by pi, and outputs the square root of the resulting product (pi squared):

SQRTPI(PI()) -> 3.141592653589793