Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Recitation 1 - Homework 1. Submit Answer on zyLabs MATLAB has many built in functions and numbers. One of those is a built in representation
Recitation 1 - Homework 1. Submit Answer on zyLabs MATLAB has many built in functions and numbers. One of those is a built in representation of the number 1, 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 MATLAB's pi approximation, then 3.14, write a script that calculates the volumes of cylinders (arca of circlc]*hcight) with i. ii. iii. Radius 5 meters and height 2 meters. Radius 10 mctars and height 4 mctors, Radius 20km and height 8km. b. Finally, use your script to calculate the differences between MATLAB's 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
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