Replies: 1 comment
-
This is a great question, the second order ODE is, its not easy to find an equation Instead, we can numerically integrate with where In Python, we need to define the ODE with a function that takes e.g. def fall_drag(y):
return np.arrray([y[1], -g + C/2*y[1]**2]) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a question about part 2 question 1 on homework 3. The question instructs us to integrate the equations from the fall_drag function and use those to plot the motion of the balls. I am having trouble figuring out how to integrate these equations. I assume it is talking about the differential equation from the notes:
ydot = [ v , -g+a_drag ]
, but the equation for a_drag is in terms of velocity, so the integration for this becomes quite complicated to try and get the position equation in terms of time. Am I thinking about this problem in the wrong way? Or since the objective of this question in the plot the motion, should I just be using the functions from the notes?
Beta Was this translation helpful? Give feedback.
All reactions