''' 你好呀
我试图找到一个简单的函数,可以用来估计航海者 1 号航天器的往返通信时间(从现在起 1、3、10 100 或 300 年)。
这是我目前掌握的信息,它应该是一个简单的函数,我理解数学。只需要语言。
谢谢
import time
def communication_time(days):
distance_start = 0
distance_now = 22944706739.083 #in km
velocity_voy_1 = 16.9995 # in km/s
speed_of_light = 299792 # km/s
distance = distance_start + velocity_voy_1 * time_since_start
round_trip_communication_time = (2 * distance_now/speed_of_light)
return 0
print(abs(communication_time(0) - 146143.0) < 10)
print(abs(communication_time(55) - 146682.0) < 10)
print(abs(communication_time(365.25 * 6) - 167616.0) < 10)