Re: [Tutor] I try to convert a MATLAB program to Python...

2010-11-15 Thread Henri Heinonen
These are the four (out of eight) first results I get with the MATLAB code: >> nonhomog(0.2) nonhomog: using 300 grid points. BC1_disc_left = -4.8436e-12 BC1_disc_right = -1.1027e-13 BC2_disc_left = -1.1269e-11 BC2_disc_right = -1.8657e-13 lambda = 0.9976 V0 = 7

[Tutor] I try to convert a MATLAB program to Python...

2010-11-15 Thread Henri Heinonen
Hi! Can you, please, try to help me with Python? I try to convert a MATLAB program to Python. Here are the MATLAB codes: http://pastebin.com/MbPZ8Z7X http://pastebin.com/dDnF5AF2 Here is my Python code: http://pastebin.com/jCPdLHx7 What is wrong with my Python code? The program doesn't produce