Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Table 1 shows the orbital period T ( the independent variable ) and semi - major axis a ( the deper,dent variable ) for som

Table 1 shows the orbital period T(the independent variable) and semi-major axis a(the deper,dent variable) for som from the Kepler mission. Let's say that we want to calculate T2 for every period in the table. When making repetitive ca make use of arrays as outlined above.
PL Q1. Define an array T for the orbital period and fill it with your data by completing the code below. Each data separated by a comma. Don't forget to run the cell when you are finished.
[]T= np.array(["period 1", "period 2", "period 3"," dotsdots ])
Now, we will define a new array T_squared and populate it with T2 values. Recall from Pre-Lab 1 that to designate an the "double asterisk" operator ?******, NOT the ^ operaor.
[] T_squared =T****2
print(T_squared)
PL Q2. Repeat the steps above to create a separate array for the semi-major axis data in the code below. Use your calculate a3 for each data point.
[]a=np.array (["axis 1", "axis 2", "axis 3","....."])
a_cubed = "Write equation here"
print (a_cubed)
image text in transcribed

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

More Books

Students also viewed these Databases questions