python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to fix this error: unsupported operand type(s) for ** or pow(): 'tuple' and 'int'
I am trying to solve an ODE with two variables. I do not understand why or how I have created a tuple here. The function f should be f = 10 - x - (4xy / 1+x^2)
Could anyone help with this?
def RK_step...
Tubbit
Votes: 0
Answers: 2
Order of convergence Runge-Kutta changes with time
I wrote a program in Python to solve the 1D wave equation by treating it as a first-order in time linear system, where the spatial variables are discretized (using 2nd order methods) and I integrate i...
moonknight
Votes: 0
Answers: 0
python code to solve the following initial value problem ordinary differential equation using Euler method over the interval (0 10)
i have this question
Write a python code to solve the following initial value
problem ordinary differential equation using Euler method over the
interval (0 10) with 10 time steps.
A) y'= -y -y^2 ; y...
sajeda khalid
Votes: 0
Answers: 2
Adaptive Runge-Kutta 4 method
I am trying to find the solution of DEQ dy/dx = 10*e^(-88.8888889(x-2)^2) - 0.6y.
Function:
def dydx(x,y):
return -0.6*y + 10*np.exp(-(x-2)**2/(2*.075**2))
Single Step Solution:
def direct(x,y,h)...

user15897459
Votes: 0
Answers: 0