SQRTPI
Returns the square root of a number multiplied by pi.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=SQRTPI(number)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
number | number | Required | — |
Remarks
- Computes
SQRT(number * PI()). - Input errors are propagated.
Error cases
numbermust be greater than or equal to0; otherwise returns#NUM!.
Examples
Evaluate the square-root calculation on a positive number.
Formula =SQRTPI(4)
Expected result 3.54490770181103
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Use a fractional input that does not produce an integer result.
Formula =SQRTPI(2.5)
Expected result 2.80249560819896
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Evaluate the calculation at its lower boundary.
Formula =SQRTPI(0)
Expected result 0
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
A negative input has no real square root.
Formula =SQRTPI(-1)
Expected result #NUM!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Square root of pi
Formula =SQRTPI(1)
Expected result 1.77245385090552
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
When does SQRTPI return #NUM!?
It returns #NUM! when the input is negative, because number*PI must be non-negative.