Question: Im trying to model the earth orbiting the sun using the Verlet method. Id like to plot the results, animate them if possible All I

Im trying to model the earth orbiting the sun using the Verlet method.
Id like to plot the results, animate them if possible
 Im trying to model the earth orbiting the sun using the
Verlet method. Id like to plot the results, animate them if possible
All I get is a graph with a line. can anyone help
me see where Im going wrong? import matplotlib.pyplot as plt import matplotlib.patches
as ptch import matplotlib.lines as lne import matplotlib.animation as ani import matplotlib
All I get is a graph with a line.
can anyone help me see where Im going wrong?

import matplotlib.pyplot as plt import matplotlib.patches as ptch import matplotlib.lines as lne import matplotlib.animation as ani import matplotlib from mpl_toolkits.mplot3d import Axes3D import numpy as np import matplotlib.pyplot as plt import scipy as sp #Gravitation is a conservative force such that E+T+V #The total energy of the system can be expressed as a pair of first order ordinary differential equations (ODE s)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!