-
-
Notifications
You must be signed in to change notification settings - Fork 359
Euler method in js #511
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
Euler method in js #511
Conversation
oops uh the bash commit is there |
The reversal of the Bubble Sort Bash commit could cause merge conflicts as soon as #509 is merged. A rebase would've probably been better here. If you want to, I can explain to you how you'd do that on Discord. It's a very powerful tool to have in your repertoire. |
fa97b60
to
057dd6d
Compare
Ah ok |
oops misspelt XD |
if (n != 0) { | ||
result[0] = 1; | ||
for (let i = 1; i < n; ++i) { | ||
result[i] = result[i-1] - 3 * result[i-1] * timeStep; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
result[i-1]
should use spaces around -
so it looks like result[i - 1]
Oh, uhm... We kinda sorta already have a Forward Euler PR for JavaScript in #418. |
oh whoops missed that PR |
+Fixed the ODE(hopefully), cuz there was an inconsistency with ODE and the code