Question: Need in 1 hour Basel Problem This problem is named after the hometown of 18 th-century mathematician Leonhard Euler. The problem asks for the sum

Need in 1 hourNeed in 1 hour Basel Problem This problem is named after the

Basel Problem This problem is named after the hometown of 18 th-century mathematician Leonhard Euler. The problem asks for the sum of the all of the numbers' reciprocals, squared. Mathematically, this can be represented like so: 121+221+321+421+ We are going to take it a step further by multiplying our output by six and getting its square root. We can calculate a number's square root by raising that number to the power of 1/2. - Store the result in a variable. Set the variable equal to zero. - Loop over all of the numbers from 1 to 10,000 - Square each number in the loop and get its reciprocal (n21). Add this to the result. - After the loop completes, multiply your result by 6 - Raise the product to the power of 0.5 (This is its' square root) - Output your result. What did you get

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!