NU-CEM / Computational_Physics

https://nu-cem.github.io/Computational_Physics
MIT License
1 stars 4 forks source link

Error in question 2 for Euler's method #14

Open Jlcode7 opened 1 week ago

Jlcode7 commented 1 week ago

There is a t variable in the conditions section when there is no mention of t in the equation

'dx/dy = cos(x)sin(y) + cos(y)'

With initial condition 'x = 0' at 'y = 1' b.) Plot 'x(y)' up to 'y = 100' using 1000 steps.

lucydot commented 1 week ago

Or how about:

dx/dy = cos(x)sin(y) + cos(y)

With initial condition x = 1 at y = 0 - as the initial value of our dependent variable must be when the independent is at 0. b.) Plot x(y) up to y = 100 using 1000 steps.

lucydot commented 1 week ago

In fact, we also need to update the equation so x is independent and y is dependent, as is usually the case: dy/dx = cos(x)sin(y) + cos(y)

lucydot commented 2 days ago

Hi @Jlcode7 I've updated the webpage. If you think this problem has been fixed, let me know here and I'll close the issue.