Write a function called orbit that takes three inputs and returns three outputs. Our function is related to a planet that is in orbit around a star. Your function should take information about your planet’s orbit and tell us how long that orbit will take. Your three inputs should be: - The major axis radius, major. - The minor axis radius, minor. - The planet’s orbital velocity, velo, in meters per second. Your outputs should be the length of one year on that planet, in days, using three approximations for the perimeter of an ellipse.A circular approximation, circTime. - Using Ramanujan’s1 first approximation, ram1Time. - Using Ramanujan’s second approximation, ram2Time
Write a function called orbit that takes three inputs and returns three outputs. Our function is related to a planet that is in orbit around a star. Your function should take information about your planet’s orbit and tell us how long that orbit will take. Your three inputs should be: - The major axis radius, major. - The minor axis radius, minor. - The planet’s orbital velocity, velo, in meters per second. Your outputs should be the length of one year on that planet, in days, using three approximations for the perimeter of an ellipse.A circular approximation, circTime. - Using Ramanujan’s1 first approximation, ram1Time. - Using Ramanujan’s second approximation, ram2Time
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Write a function called orbit that takes three inputs and returns three outputs. Our
function is related to a planet that is in orbit around a star. Your function should take information about your planet’s orbit and tell us how long that orbit will take.
Your three inputs should be:
- The major axis radius, major.
- The minor axis radius, minor.
- The planet’s orbital velocity, velo, in meters per second.
Your outputs should be the length of one year on that planet, in days, using three approximations for the
perimeter of an ellipse.A circular approximation, circTime.
- Using Ramanujan’s1 first approximation, ram1Time.
- Using Ramanujan’s second approximation, ram2Time

Transcribed Image Text:MAlws u
< 2-2.pdf
F3
gmail
ttps://rutgers.instructure.com/courses/217240/assignments/2432896
4
A
Home SP23_1
Output
Time in Days
Earth Data
You should find:
F4
%
perimeter ≈ n(a + b) (1 + ·
10
40 FS
5
T
circ Time
MATLA Zy Section
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)
4-
3.652952252479330e+02
6
F6
Y
149600000
4+ F7
&
O Search
7
U
*
FB
Hoxb Home zy Section
8
3h
10+ √4-3h
Page
b (km)
1
149580000
ram1 Time
▶11 F9
2
9
0
-
>
FIO
0
Files
where h =
of 2
v (km/s)
29.78
3.652952248398216e+02 3.652952248398215e+02
P
FII
Download
ram2 Time
M
(a - b)²
(a + b)²
{
C
[
F12
+
- ZOOM
G
i Info
DELETE
BACKSPACE
![01 SP23
← O
circTime, ramlTime, ram2 Time]
The circular approximation is:
Ramanujan's first approximation is:
SHAD
Ramanujan's second approximation is:
FI
ANTERIOR SIO
https://rutgers.instructure.com/courses/217240/assignments/2432896
56°F
Sunny
W
5
X
# F2
#
3
E
C
*F3
≈
(1
perimeter π(a + b)(1+
$
4
A
F
F4
V
%
40 FS
5
T
perimeter ≈ ñ[3(a + b) − √√(3a + b)(a + 3b)]
G
B
6
F6
Y
H
&
perimeter≈ 2π
=
N
O Search
F7
7
U
J
Page <
of 2
= orbit (major, minor, vel
*
FB
8
M
4
3h
10+ √4-3h
▶II F9
K
9
HI
a² + b²
2
FIO
L
2
0
P
where h =
FIL
F12
+
[
G
]
(a - b)
(a + b)²
PAUSE
C
DELETE
BACKSPACE
1](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F5351d465-75f3-4ada-a30b-2af32837c9ec%2Fe4a2526d-74e5-474a-9c09-5f9a8df8c153%2Fbbmmest_processed.jpeg&w=3840&q=75)
Transcribed Image Text:01 SP23
← O
circTime, ramlTime, ram2 Time]
The circular approximation is:
Ramanujan's first approximation is:
SHAD
Ramanujan's second approximation is:
FI
ANTERIOR SIO
https://rutgers.instructure.com/courses/217240/assignments/2432896
56°F
Sunny
W
5
X
# F2
#
3
E
C
*F3
≈
(1
perimeter π(a + b)(1+
$
4
A
F
F4
V
%
40 FS
5
T
perimeter ≈ ñ[3(a + b) − √√(3a + b)(a + 3b)]
G
B
6
F6
Y
H
&
perimeter≈ 2π
=
N
O Search
F7
7
U
J
Page <
of 2
= orbit (major, minor, vel
*
FB
8
M
4
3h
10+ √4-3h
▶II F9
K
9
HI
a² + b²
2
FIO
L
2
0
P
where h =
FIL
F12
+
[
G
]
(a - b)
(a + b)²
PAUSE
C
DELETE
BACKSPACE
1
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education