Question: 3. ISebmit on zyLabel Write a function called orblt that takes throe inputs and retarns two outputs. Ou numction is related to a planet that
3. ISebmit on zyLabel Write a function called orblt that takes throe inputs and retarns two outputs. Ou numction is related to a planet that is im orbit eround a star, Kemember that planets have elliptical orbits, like this: Image from htps:/upload of an elliptical orbitp An ellipse has two measurements that we can use define it. Those are the major axis radius (a in the picture) and the minor axis radius (b in the picture below) a. Your function should take information about your planet's orbdt and tell us how lone that orbit will take Your three inputs should be The major axis radius The minor austadius,ma.sor The planet's orbital velosity, velo, in meters per socond major Your outputs should be the length of one year on that planct, in days using two approximations for the perimeter of an ellipue A carcular hpproximation circ Year ram year This means that when you call your function, it should have the form: teireTime, ramTime) orbit (major, minor, velo) The circular approximation is a2 +b2 perimeter 2m Ramanujan's approximation is: perimeter 3a + b)-v3a + b)(a+3b)] Note that those equations give you perimeters. To calculate the time it takes to travel that distance, you have to divide a perimeter by a velocity. Then remember to convert the time to the correct units (days). To test your code, use these inputs Input a (km) b (km) v(kins) 12260000- 1 Earth Data 149600000 149580000 You should find Output Standard Soln TI 3.6529522524793306-02652952248398216c+02 T2 Note that earthi's orbit is indsed very shove to a circlef
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
