runge-kutta Questions

1

Solved

Trying to implement an adaptive step size Runge-Kutta Cash-Karp but failing with this error: home/anaconda/lib/python3.6/site-packages/ipykernel_launcher.py:15: RuntimeWarning: divide by zero enc...

1

Solved

I am a physics student interested in solving ODEs numerically. I usually write my own solvers in C using Runge–Kutta methods. I recently learned Python, and I used SciPy’s odeint function to solve...
Sharmainesharman asked 12/4, 2018 at 14:44

3

Solved

Below is my 4th order Runge-Kutta algorithm to solve a first order ODE. I am checking it against the wikipedia example found here to solve: \frac{dx}{dt} = tan(x) + 1 Unfortunately it is out by ...
Kotick asked 17/3, 2017 at 11:24

3

Solved

There are two ways of implementing the classical Runge-Kutta scheme in Python showed here. The first using lambda functions, the second without them. Which one is going to be faster and why exactl...
Valina asked 4/1, 2017 at 18:30

1

I am using the attached code to integrate a version of Fitzhugh-Nagumo model : from scipy.integrate import odeint import numpy as np import time P = {'epsilon':0.1, 'a1':1.0, 'a2':1.0, 'b':2.0...
Rile asked 29/11, 2016 at 12:51

0

In the time tests shown below, I found that Skyfield takes several hundred microseconds up to a millisecond to return obj.at(jd).position.km for a single time value in jd, but the incremental cost ...
Julijulia asked 12/2, 2016 at 8:56

1

Solved

I am trying to implement the runge-kutta method to solve a Lotka-Volterra systtem, but the code (bellow) is not working properly. I followed the recomendations that I found in other topics of the S...
Inconsonant asked 28/1, 2016 at 20:29

1

I am using pseudo-spectral method to solve for KdV equation u_t + u*u_x + u_xxx = 0. After simplification by Fourier Transform, I got two equations with two variables: uhat = vhat * exp(-i*k^3*t)...
Ardent asked 14/4, 2015 at 0:11

2

Solved

I would appreciate if someone can help with the following issue. I have the following ODE: dr/dt = 4*exp(0.8*t) - 0.5*r ,r(0)=2, t[0,1] (1) I have solved (1) in two different ways. By means of t...

3

Solved

This is my first post and I have to admit, I am terrible at programming. I am that guy in the class that works his tail off, but can never seem to grasp programming as well as the rest of my classm...
Ligroin asked 3/4, 2012 at 3:39

3

Solved

I'm just testing several integration schemes for orbital dynamics in game. I took RK4 with constant and adaptive step here http://www.physics.buffalo.edu/phy410-505/2011/topic2/app1/index.html an...
Marable asked 17/4, 2013 at 9:24

2

Let's say I have a Bezier curve B(u), if I increment u parameter at a constant rate I don't obtain a costant speed movement along the curve, because the relation between u parameter and the point o...
Ligan asked 6/3, 2013 at 18:13

3

Can someone explain to me why Verlet integration is better than Euler integration? And why RK4 is better than Verlet? I don't understand why it is a better method.
Pompous asked 4/5, 2010 at 22:48
1

© 2022 - 2024 — McMap. All rights reserved.