[SciPy-user] Scilab to Scipy
Warren Weckesser
warren.weckesser at gmail.com
Fri Aug 22 16:01:19 EDT 2008
Hi Peter,
On Fri, Aug 22, 2008 at 3:34 PM, peter websdell <
flyingdeckchair at googlemail.com> wrote:
> Hello,
>
> Thanks for the advice warren. However, the scilab code actually produces
> the results I am expecting.
>
Only by a remarkable stroke of luck does it create a "correct" picture when
n=2 and m=2. Try changing to n=1 and rerun the scilab code. Or try
changing your grid size from the default of 100 to something even a little
larger, say 101 (i.e. add a third argument of 101 to the linspace commands,
adjust the initialization of z to "z=zeros(101,101)", and change the for
loop limits appropriately). Your scilab plot will be a mess, like the one
I'm looking at right now.
> I will post a picture next week.
>
> What I don't understand is that python takes the exact same input,
> processess the data in the same way and then produces different results.
>
Basically, the scilab code is bad, and you are recreating the bug in the
python code.
Cheers,
Warren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20080822/19fb4381/attachment.html>
More information about the SciPy-User
mailing list