Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Numpy import? #6

Open
David-Herman opened this issue Jun 8, 2022 · 1 comment
Open

Missing Numpy import? #6

David-Herman opened this issue Jun 8, 2022 · 1 comment

Comments

@David-Herman
Copy link

Are you missing import for ones() ?

from numpy import array, hstack, zeros, linspace, pi, 
from numpy.linalg import solve
from scipy.integrate import odeint


in this cell

x0 = hstack(( 0, pi / 2 * ones(len(q) - 1), 1e-3 * ones(len(u)) )) # Initial conditions, q and u
t = linspace(0, 10, 1000)                                          # Time vector
y = odeint(right_hand_side, x0, t, args=(parameter_vals,))         # Actual integration
@moorepants
Copy link
Collaborator

Yes, I think it was reported in #5 also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants