Site icon TestingDocs.com

Geometric Mean of n numbers Raptor Flowchart

Overview

The Geometric Mean of n numbers is defined as the nth root of the product of the numbers. Mathematically, we can write the equation as:

 

GM =  

 

Alternatively,

 

GM =

Calculation

Let’s calculate the GM by hand before modelling the flowchart.

Say the numbers are:

n= 5

 

GM =

 

GM =

 

 

Flowchart

We will model a Raptor flowchart to compute the GM of n numbers. The numbers are taken as input from the user.

 

Steps:

Prompt the user to enter n

In a loop, prompt the user to enter the numbers.

Calculate the product of the numbers.

Compute the GM and output the result.

Sample Output

To verify the flowchart output, we can run the flowchart and input numbers. Additionally, we can verify the computation on computational engine like WolframAlpha.

 

To compute the geometric mean on WolframAlpha:

https://www.wolframalpha.com/input/?i=geometric+mean

 

Raptor Tutorials on this website can be found at:

https://www.testingdocs.com/raptor-a-flowchart-tool/

RAPTOR official website: https://raptor.martincarlisle.com/

Exit mobile version