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

'g' or 'G'? #24

Closed
cormullion opened this issue Sep 29, 2017 · 3 comments
Closed

'g' or 'G'? #24

cormullion opened this issue Sep 29, 2017 · 3 comments

Comments

@cormullion
Copy link
Contributor

I wondered why it's g in the kwargs but G in the function body?

function double_pendulum(u0=rand(4); g=10.0, L1 = 1.0, L2 = 1.0, M1 = 1.0, M2 = 1.0)
...
du[2] = (M2*L1*state[2]*state[2]*sin(del_)*cos(del_) +
               M2*G*sin(state[3])*cos(del_) +
               M2*L2*state[4]*state[4]*sin(del_) -
               (M1 + M2)*G*sin(state[1]))/den1
...
@Datseris
Copy link
Member

Because I am stupid, obviously!

Do you want to submit a PR to fix it and get your name in the contributors!!!!?????? Pretty appealing, right?

If not, I will fix it tonight :D

@cormullion
Copy link
Contributor Author

Yes! That would be cool. :)

@cormullion
Copy link
Contributor Author

Fixed by #25.

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