Question: At this point, you should have the functions correctly defined, it is time to test it and to make the plots. [ 5 ] :

At this point, you should have the functions correctly defined, it is time to test it and to make the plots.
[5]: # input some values. Do not change this cell
speed = c/2.0
distance = c *3600.0*24.0*365.25*10
print(dilation(speed))
print(compute_time(speed, distance))
print(total_dilated(speed, distance))
array_v = np.arange((0,c,10000)
array_d = np.arange(0, distance *10, distance /10)
149896.0
None
149896.0
None
149896.0
None
[6]: # Plot the difference between the time elapsed on Earth and in Space, as a function of speed, for the distance "distance"
plt.plot(????)
# Do the same, but as a function of the distance, for the speed "speed"
Cell In[6], line 2
plt.plot(????)
???
SyntaxError: invalid syntax
At this point, you should have the functions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!