[SciPy-dev] scipy.interpolate.fitpack patch

Nils Wagner nwagner@iam.uni-stuttgart...
Thu Feb 8 06:26:15 CST 2007


John Travers wrote:
> On 08/02/07, Nils Wagner <nwagner@iam.uni-stuttgart.de> wrote:
>   
>> John Travers wrote:
>>     
>>> Hi Nils,
>>> This seems strange to me. It is not finding the first root.Can you run
>>>
>>> /usr/lib64/python2.4/site-packages/scipy/interpolate/fitpack.py 3
>>>
>>> and
>>>
>>> /usr/lib64/python2.4/site-packages/scipy/sandbox/spline/fitpack.py 3
>>>
>>> and post the output please.
>>>
>>>       
> ...
>   
>> Sure.
>> python -i /usr/lib64/python2.4/site-packages/scipy/sandbox/spline/fitpack.py
>>     
>
>   
>> ******************************************
>>         Tests of sproot
>> ******************************************
>>   k  :     Roots of s(x) approx sin(x)  x in [0.0,15.0]:
>>   3  : [3.1418159268145143, 6.283324249558861, 9.4246967197029239,
>> 12.566327676063914]
>>     
>
>   
>> python -i /usr/lib64/python2.4/site-packages/scipy/interpolate/fitpack.py
>>     
>
>   
>>   3  : [3.1418159268145143, 6.283324249558861, 9.4246967197029239,
>> 12.566327676063914]
>>     
>
> So the original fitpack doesn't find the first root either - strange
> that this works on my machine, but not yours. Given that the other
> roots look good I don't think there is a major problem. I think I'll
> just modify the test to not complain if the first root is not found
> for now.
>
> Cheers,
> John
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-dev
>   
Maybe a 64-bit issue ???
uname -a
Linux lisa 2.6.13-15.13-default #1 Tue Nov 28 13:43:50 UTC 2006 x86_64
x86_64 x86_64 GNU/Linux

Nils

I can run the test on a 32-bit machine if needed.

Nils

 



More information about the Scipy-dev mailing list