Formualizer Docs

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

ArgumentTypeRequiredDefault
numbernumberRequired—

Remarks

  • Computes SQRT(number * PI()).
  • Input errors are propagated.

Error cases

  • number must be greater than or equal to 0; 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?.

FAQ

When does SQRTPI return #NUM!?

It returns #NUM! when the input is negative, because number*PI must be non-negative.

Implementation

Engine source

On this page