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

BUG in Euler Forward def() #1

Open
defencedog opened this issue Oct 31, 2022 · 0 comments
Open

BUG in Euler Forward def() #1

defencedog opened this issue Oct 31, 2022 · 0 comments

Comments

@defencedog
Copy link

defencedog commented Oct 31, 2022

@ https://github.com/LorranSutter/DiscreteMethods/blob/master/discreteMethods.py#L142

should be x[w] += h*fn[w](*x)
where multi-variable functions to be defined as following

Notice equal number of arguments per function even though you don't use those ...

[55]: #functions
    ...: f0=lambda u1, u2, t:t
    ...: f1=lambda u1, u2, t:u1 - u2 + 2
    ...: f2=lambda u1, u2, t:-u1 +u2 + 4*t
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

1 participant