Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: ODE Solver Accuracy and Stability | Differential Equations and Dynamic Systems
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Numerical Methods for Scientific Computing with Python

bookChallenge: ODE Solver Accuracy and Stability

You will implement and compare two numerical ODE solvers for the initial value problem (IVP):

dydt=f(t,y),y(t0)=y0\frac{dy}{dt} = f(t, y), \qquad y(t_0)=y_0

You will implement:

Euler Method

  • First-order method (less accurate).
  • Can become unstable for stiff or sensitive problems.

Runge–Kutta 4 (RK4)

  • Fourth-order method (more accurate).
  • Typically more stable than Euler for the same step size.

You will solve the test ODE:

dydt=y,y(0)=1\frac{dy}{dt} = y,\quad y(0)=1

The analytical solution is:

y(t)=ety(t)=e^t
Tarea

Swipe to start coding

  • Implement euler_solver and rk4_solver.
  • Use a fixed step size h and integrate from t0 to t_end.
  • Return the final value (y(tend)y(t_{end})).
  • Compute the absolute error compared to (etende^{t_{end}}).

Solución

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 3. Capítulo 4
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

close

bookChallenge: ODE Solver Accuracy and Stability

Desliza para mostrar el menú

You will implement and compare two numerical ODE solvers for the initial value problem (IVP):

dydt=f(t,y),y(t0)=y0\frac{dy}{dt} = f(t, y), \qquad y(t_0)=y_0

You will implement:

Euler Method

  • First-order method (less accurate).
  • Can become unstable for stiff or sensitive problems.

Runge–Kutta 4 (RK4)

  • Fourth-order method (more accurate).
  • Typically more stable than Euler for the same step size.

You will solve the test ODE:

dydt=y,y(0)=1\frac{dy}{dt} = y,\quad y(0)=1

The analytical solution is:

y(t)=ety(t)=e^t
Tarea

Swipe to start coding

  • Implement euler_solver and rk4_solver.
  • Use a fixed step size h and integrate from t0 to t_end.
  • Return the final value (y(tend)y(t_{end})).
  • Compute the absolute error compared to (etende^{t_{end}}).

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 3. Capítulo 4
single

single

some-alt