All Posts

Geometric Mean Raptor Flowchart

Geometric Mean Raptor Flowchart

Raptor flowchart to calculate the Geometric Mean of two numbers. The flowchart will prompt the user for the two numbers. Geometric  Mean(AM) of two numbers a and b is:

 

\huge GM = \sqrt{ a * b }

 

Example:

Let a = 5 and b=9

 

GM = \huge \sqrt{5 * 9 }

 

= \huge \sqrt{45}

 

= 6.708

Raptor Flowchart

 

GeometricMean RaptorFlowchart

Output

User entered numbers:= 5 , 9
Geometric Mean:=6.7082
—-Run complete. 7 symbols evaluated.—-

Enhancements

We can make further enhancements to the flowchart to accept n numbers from the user and calculate the GM of n numbers.

GM =

\huge \sqrt[n]{\prod_{i=1}^{n} x_{i}}