[SciPy-user] Scilab to Scipy

Warren Weckesser warren.weckesser@gmail....
Fri Aug 22 15:01:19 CDT 2008


Hi Peter,

On Fri, Aug 22, 2008 at 3:34 PM, peter websdell <
flyingdeckchair@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://projects.scipy.org/pipermail/scipy-user/attachments/20080822/19fb4381/attachment.html 


More information about the SciPy-user mailing list