''' やあ
ボイジャー 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)