Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using python Write a Python function called sgm that requests a positive integer n and returns the series geometric mean of the numbers 1,2,3, .
Using python
Write a Python function called sgm that requests a positive integer n and returns the series geometric mean of the numbers 1,2,3, . . . n. For example sgm(5) =
(5 x 4 x 3 x 2 x 1)1/5 = (120) 1/5 = 2.605 . Write the program so that a user is requested for a positive integer and program prints the series geometric mean of the integer.
Example execution:
Enter number: 5
series geometric mean of 5 = 2.605
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started