Python Forum
odeint to solve Schrodinger equation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
odeint to solve Schrodinger equation
#2
That code needs some serious refactoring. I've been digging into it for a few... twenty minutes... -ish... and I haven't sussed out the deal with E. That global variable doesn't appear do actually do anything in the code. Every subsequent instance when a variable E is used, the variable is instantiated in a for loop, so the global isn't being used at all, it seems. Plus, it gets set as a global from a function - very bad practice.

Can you provide the expected results for the problematic functions when given known arguments?
Reply


Messages In This Thread
odeint to solve Schrodinger equation - by kiyoshi7 - Nov-15-2018, 07:15 PM
RE: odeint to solve Schrodinger equation - by stullis - Nov-16-2018, 12:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mukhanov equation + odeint Messier087 0 1,651 Mar-28-2020, 04:03 PM
Last Post: Messier087
  Odeint to solve Mukhanov equation Messier087 4 2,660 Feb-17-2020, 05:05 PM
Last Post: Messier087
  Can't find a way to solve this nonlinear equation Alex009988 2 2,704 Aug-16-2019, 01:50 AM
Last Post: scidam
  python odeint keeps giving me size of array error kiyoshi7 1 6,235 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