TOF3

Hohmann time of flight, days
import sys import math au = 149598023 mu = 1.32712E11 r1 = au * float(sys.argv[1]) r2 = au * float(sys.argv[2]) e = (r1 + r2)**3 f = mu * 8 i = math.pi * math.sqrt(e / f) print (round((i / 3600 / 24),2))
 * 1) !/usr/bin/python3