Question: For this project, you must work to develop a MATLAB code to calculate the digits of pi using the bouncing blocks method ( you may
For this project, you must work to develop a MATLAB code to calculate the digits of pi using the bouncing blocks method you may use a different coding software, but may have to run it for me and walk me through your code
Your code must ask the user to input the number of digits of pi they would like calculated
Your code must then use that input to do the calculation
If the input is not an integer, your code should output an error to the user explaining the problem
Change the format of your output to format long
Each line of your code must be commented
Your code should output the number of collisions, the calculated value of pi and the error of that calculation based on the value of pi in MATLAB pi
Deliverables
m MATLAB file
pdf of Excel table showing the output of your code number of collisions, calculated pi percent error for a run of your program with inputs ranging from
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
