Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer should be in matlab coding please This activity uses a 3rd party app. Though your activity may be recorded, a refresh may be required

image text in transcribed
image text in transcribedAnswer should be in matlab coding please
This activity uses a 3rd party app. Though your activity may be recorded, a refresh may be required to update the banner to the left. Calculating gear ratios for an orrery. An orrery is a mechanical model of the solar system. Gear ratios approximate the ratio of orbital periods for various planets and accurate ratios are necessary to build an accurate orrery. The numerator and denominator of the rational approximation corresponds to the number of teeth in the two gears that model the corresponding orbits. Calculate the ratio approximation of planet1Period and planet2Period within ratio Tolerance Assign the numerator to approxNum and denominator to approxDen. Ex: If planet1Period is 1 (orbital period of Earth in years) and planet2Period is 1.881 (orbital period of Mars in years), then approxNum is 8 and approxDen is 15 Your Solution H Save C Reset MATLAB Documentation 1 function lapproxNum approx Denl GearRatio( planet 1Period, planet 2Period, ratioTolerance 2 GearRatio: Return numerator and denominator of gear ratio that 3 approximates the ratio of the inputs period1/period2 within the 4 input tolerance 5 Inputs plane Period, planet2Period input periods 6 ratio Tolerance required accuracy of approximation 8 Outputs approxNum, approxDen numerator and denominator of gear ratio 11 Calculate the ratio approximation of planet1Period planet2Period within ratio Tolerance

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

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions