Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

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

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
expand button
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
expand button
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
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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.
Similar questions
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education