mirror of
https://github.com/NotAShelf/projectile-simulation.git
synced 2024-11-26 15:16:48 +00:00
14 lines
244 B
Python
14 lines
244 B
Python
|
from projectile.simulation import ProjectileSimulation
|
||
|
import numpy as np
|
||
|
|
||
|
|
||
|
def main():
|
||
|
sim = ProjectileSimulation(v_init=100, theta=np.radians(45))
|
||
|
sim.run()
|
||
|
sim.plot()
|
||
|
sim.print_range()
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
main()
|