Question: [Submit Answer on zyLabs] MATLAB has many built in functions and numbers. One of those is a built in representation of the number , 3.14159...

[Submit Answer on zyLabs] MATLAB has many built in functions and numbers. One of those is a built in representation of the number , 3.14159... In MATLAB, you just need to write pi to access that number. While that number is not 100% accurate (no representation of pi is), it has many more decimal places, and is much more accurate, than the approximation we sometimes use for rough calculations by hand, 3.14. a. Using MATLABs pi approximation, then 3.14, write a script that calculates the volumes of cylinders ([area of circle]*height) with: i. Radius 5 meters and height 2 meters. ii. Radius 10 meters and height 4 meters. iii. Radius 20km and height 8km. b. Finally, use your script to calculate the differences between MATLABs pi approximation and 3.14 for all of these calculations. Do you notice a trend?

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!