Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use diff5 as a variable for radius 5m and height 2m, diff10 for radius 10m and height 4m. and diff20 for 20km and height 8km

image text in transcribed
use diff5 as a variable for radius 5m and height 2m, diff10 for radius 10m and height 4m. and diff20 for 20km and height 8km
MATLAB has many built in functions and numbers. One of those is a built inrepresentation of the number TT, 3.14159... In MATLAB, you just need to write "poi" 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 ([area of circle]"height) with: iRadius 5 meters and height 2 meters. ii.Radius 10 meters and height 4 meters. iii.Radius 20km and height 8km. k.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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions