Python Forum
Odeint to solve Mukhanov equation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Odeint to solve Mukhanov equation
#4
If H and ep depend on t you always can do the following:

def H_func(t):
    return ... 

def ep_func(t):
    return ... 

def sol(Y, t, k):
    return [Y[1], -(3-ep_func(t))*Y[1] -((k**2)/H_func(t))*Y[0]]
H_func and ep_func are arbitrary and can include some interpolations as well
Reply


Messages In This Thread
Odeint to solve Mukhanov equation - by Messier087 - Feb-12-2020, 02:12 PM
RE: Odeint to solve Mukhanov equation - by scidam - Feb-13-2020, 03:36 AM
RE: Odeint to solve Mukhanov equation - by scidam - Feb-16-2020, 11:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mukhanov equation + odeint Messier087 0 1,640 Mar-28-2020, 04:03 PM
Last Post: Messier087
  Can't find a way to solve this nonlinear equation Alex009988 2 2,681 Aug-16-2019, 01:50 AM
Last Post: scidam
  odeint to solve Schrodinger equation kiyoshi7 14 12,355 Nov-23-2018, 11:49 AM
Last Post: kiyoshi7
  python odeint keeps giving me size of array error kiyoshi7 1 6,193 Nov-01-2018, 02:03 AM
Last Post: j.crater

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020