Skip to content

Instantly share code, notes, and snippets.

View jonpsy's full-sized avatar
🔥
All or nothing

Nanubala Gnana Sai jonpsy

🔥
All or nothing
View GitHub Profile
@jonpsy
jonpsy / tof_repeats.py
Created February 23, 2020 21:21
Highlighting the issue #840 , tof provided by the user ( 2 hr or 7200.0 secs ) exceeds the upper bound tof( 1989.6321243010739 secs ) for the given r0,rf.
from poliastro.iod.vallado import lambert as vallado
from astropy import units as u, constants as c
if __name__ == "__main__":
k = (c.GM_earth.to(u.km ** 3/ u.s ** 2))
r0 = [10000., 0, 0] * u.km
rf = [8000., -5000, 0] * u.km
tof = 2 * u.hour
numiter = 10**3
@jonpsy
jonpsy / izzo_vallado_compare.py
Created February 23, 2020 21:16
Izzo and Vallado algorithm are used for the Lambert Problem. Both yield different answers
from poliastro.iod.vallado import lambert as lambert_v
from poliastro.iod.izzo import lambert as lambert_i
from astropy import units as u, constants as c
if __name__ == "__main__":
k = (c.GM_earth.to(u.km ** 3/ u.s ** 2))
r0 = ([10000., 0, 0] * u.km)
rf = ([8000., -5000, 0] * u.km)
tof = 2*u.hour