{"id":18862,"date":"2017-02-22T06:42:32","date_gmt":"2017-02-22T06:42:32","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=18862"},"modified":"2024-09-04T07:56:03","modified_gmt":"2024-09-04T07:56:03","slug":"geometric-mean-of-n-numbers-raptor-flowchart","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/geometric-mean-of-n-numbers-raptor-flowchart\/","title":{"rendered":"Geometric Mean of n numbers Raptor Flowchart"},"content":{"rendered":"<h2>Geometric Mean of n numbers Raptor Flowchart<\/h2>\n<p>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:<\/p>\n<p>&nbsp;<\/p>\n<p>GM =\u00a0\u00a0 <img decoding=\"async\" src=\"https:\/\/latex.codecogs.com\/gif.latex?\\huge&amp;space;(\\prod_{i=1}^{n}x_{i})^{\\frac{1}{n}}\" alt=\"\\huge (\\prod_{i=1}^{n}x_{i})^{\\frac{1}{n}}\" align=\"absmiddle\" title=\"\"><\/p>\n<p>&nbsp;<\/p>\n<p>Alternatively,<\/p>\n<p>&nbsp;<\/p>\n<p>GM = <img decoding=\"async\" src=\"https:\/\/latex.codecogs.com\/gif.latex?\\huge&amp;space;\\sqrt[n]{x_{i}.x_{2}.x_{3}...x_{n}}\" alt=\"\\huge \\sqrt[n]{x_{i}.x_{2}.x_{3}...x_{n}}\" align=\"absmiddle\" title=\"\"><\/p>\n<h3>Calculation<\/h3>\n<p>Let&#8217;s calculate the GM by hand before modelling the flowchart.<\/p>\n<p>Say the numbers are: <img decoding=\"async\" src=\"https:\/\/latex.codecogs.com\/gif.latex?\\huge&amp;space;\\left&amp;space;\\{&amp;space;1,2,3,4,5&amp;space;\\right&amp;space;\\}\" alt=\"\\huge \\left \\{ 1,2,3,4,5 \\right \\}\" align=\"absmiddle\" title=\"\"><\/p>\n<p>n= 5<\/p>\n<p>&nbsp;<\/p>\n<p>GM = <img decoding=\"async\" src=\"https:\/\/latex.codecogs.com\/gif.latex?\\huge&amp;space;\\sqrt[5]{1*2*3*4*5}\" alt=\"\\huge \\sqrt[5]{1*2*3*4*5}\" align=\"absmiddle\" title=\"\"><\/p>\n<p>&nbsp;<\/p>\n<p>GM = <img decoding=\"async\" src=\"https:\/\/latex.codecogs.com\/gif.latex?\\huge&amp;space;\\sqrt[5]{120}\" alt=\"\\huge \\sqrt[5]{120}\" align=\"absmiddle\" title=\"\"><\/p>\n<p>&nbsp;<\/p>\n<p>=\u00a0 <img decoding=\"async\" src=\"https:\/\/latex.codecogs.com\/gif.latex?\\huge&amp;space;\\sim&amp;space;2.6052\" alt=\"\\huge \\sim 2.6052\" align=\"absmiddle\" title=\"\"><\/p>\n<p>&nbsp;<\/p>\n<h3>Flowchart<\/h3>\n<p>We will model a Raptor flowchart to compute the GM of n numbers. The numbers are taken as input from the user.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-18877 size-full\" title=\"Geometric Mean Flowchart\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Geometric-Mean-Flowchart.png\" alt=\"Geometric Mean Flowchart\" width=\"743\" height=\"1496\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Geometric-Mean-Flowchart.png 743w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Geometric-Mean-Flowchart-149x300.png 149w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Geometric-Mean-Flowchart-509x1024.png 509w\" sizes=\"auto, (max-width: 743px) 100vw, 743px\" \/><\/p>\n<h3>Steps:<\/h3>\n<p>Prompt the user to enter n<\/p>\n<p>In a loop, prompt the user to enter the numbers.<\/p>\n<p>Calculate the product of the numbers.<\/p>\n<p>Compute the GM and output the result.<\/p>\n<h3>Sample Output<\/h3>\n<p>To verify the flowchart output, we can run the flowchart and input numbers. Additionally, we can verify the computation on computational engine like WolframAlpha.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18881\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Goemmetric-mean-verification.png\" alt=\"Goemmetric mean verification\" width=\"1708\" height=\"882\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Goemmetric-mean-verification.png 1708w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Goemmetric-mean-verification-300x155.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Goemmetric-mean-verification-1024x529.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Goemmetric-mean-verification-768x397.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Goemmetric-mean-verification-1536x793.png 1536w\" sizes=\"auto, (max-width: 1708px) 100vw, 1708px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>To compute the geometric mean on WolframAlpha:<\/p>\n<p><a href=\"https:\/\/www.wolframalpha.com\/input\/?i=geometric+mean\" rel=\"noopener\">https:\/\/www.wolframalpha.com\/input\/?i=geometric+mean<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Raptor Tutorials on this website can be found at:<\/p>\n<p><a href=\"https:\/\/www.testingdocs.com\/raptor-a-flowchart-tool\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>https:\/\/www.testingdocs.com\/raptor-a-flowchart-tool\/<\/strong><\/a><\/p>\n<p>RAPTOR official website: <a href=\"https:\/\/raptor.martincarlisle.com\/\" rel=\"noopener\"><strong>https:\/\/raptor.martincarlisle.com\/<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Geometric Mean of n numbers Raptor Flowchart 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: &nbsp; GM =\u00a0\u00a0 &nbsp; Alternatively, &nbsp; GM = Calculation Let&#8217;s calculate the GM by hand before modelling the flowchart. Say the numbers are: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[187],"tags":[208],"class_list":["post-18862","post","type-post","status-publish","format-standard","hentry","category-flowchart","tag-mathematics","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/18862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=18862"}],"version-history":[{"count":17,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/18862\/revisions"}],"predecessor-version":[{"id":24158,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/18862\/revisions\/24158"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=18862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=18862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=18862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}