[Scipy-tickets] [SciPy] #1170: there is a bug in "scipy.integrate.quad" function.
SciPy Trac
scipy-tickets@scipy....
Fri May 7 21:26:03 CDT 2010
#1170: there is a bug in "scipy.integrate.quad" function.
----------------------------------+-----------------------------------------
Reporter: Joe | Owner: somebody
Type: defect | Status: new
Priority: highest | Milestone: 0.8.0
Component: scipy.integrate | Version: 0.7.0
Keywords: scipy integrate quad |
----------------------------------+-----------------------------------------
Old description:
> when I use the "scipy.integrate.quad" to calculate a simple integration.
> The program cannot run and dumped immediately.
> The code is:
>
> {{{
> from scipy.integrate import quad; print quad(lambda x: x+1, 1.0, 2.0)
> }}}
>
> ----
> The system platform: Window Xp
> Python Version: 2.5.4
> Scipy Numpy version: latest for python 2.5
>
> '''The debug information is:'''
> ----
> D:\Python25>bin\gdb.exe python.exe
> GNU gdb 6.3
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for
> details.
> This GDB was configured as "i686-pc-mingw32"...(no debugging symbols
> found)
>
> (gdb) run -c "from scipy.integrate import quad; print quad(lambda x: x+1,
> 1.0, 2.0)"
> Starting program: D:\Python25/python.exe -c "from scipy.integrate import
> quad; print quad(lambda x:x+1, 1.0, 2.0)"
> ---Type <return> to continue, or q <return> to quit---
>
> Program received signal SIGILL, Illegal instruction.
> 0x6a852cfe in dqk21_ (f=0x21fb2c, a=0x21fb34, b=0x21f8ac,
> result=0x21f8b4,
> abserr=0x5ad42bd9, resabs=0x1029fd8, resasc=0x1c0)
> at scipy/integrate/quadpack/dqk21.f:179
> 179 scipy/integrate/quadpack/dqk21.f: No such file or directory.
> in scipy/integrate/quadpack/dqk21.f
> Current language: auto; currently fortran
> (gdb) c
> Continuing.
>
> Program received signal SIGILL, Illegal instruction.
> 0x6a852cfe in dqk21_ (f=0x21fb2c, a=0x21fb34, b=0x21f8ac,
> result=0x21f8b4,
> abserr=0x5ad42bd9, resabs=0x1029fd8, resasc=0x1c0)
> at scipy/integrate/quadpack/dqk21.f:179
> 179 in scipy/integrate/quadpack/dqk21.f
> (gdb) c
> Continuing.
>
> Program exited with code 030000000035.
>
> ----
New description:
when I use the "scipy.integrate.quad" to calculate a simple integration.
The program cannot run and dumped immediately.
The code is:
{{{
from scipy.integrate import quad; print quad(lambda x: x+1, 1.0, 2.0)
}}}
----
The system platform: Window Xp
Python Version: 2.5.4
Scipy Numpy version: latest for python 2.5
'''The debug information is:'''
----
{{{
D:\Python25>bin\gdb.exe python.exe
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i686-pc-mingw32"...(no debugging symbols
found)
(gdb) run -c "from scipy.integrate import quad; print quad(lambda x: x+1,
1.0, 2.0)"
Starting program: D:\Python25/python.exe -c "from scipy.integrate import
quad; print quad(lambda x:x+1, 1.0, 2.0)"
---Type <return> to continue, or q <return> to quit---
Program received signal SIGILL, Illegal instruction.
0x6a852cfe in dqk21_ (f=0x21fb2c, a=0x21fb34, b=0x21f8ac, result=0x21f8b4,
abserr=0x5ad42bd9, resabs=0x1029fd8, resasc=0x1c0)
at scipy/integrate/quadpack/dqk21.f:179
179 scipy/integrate/quadpack/dqk21.f: No such file or directory.
in scipy/integrate/quadpack/dqk21.f
Current language: auto; currently fortran
(gdb) c
Continuing.
Program received signal SIGILL, Illegal instruction.
0x6a852cfe in dqk21_ (f=0x21fb2c, a=0x21fb34, b=0x21f8ac, result=0x21f8b4,
abserr=0x5ad42bd9, resabs=0x1029fd8, resasc=0x1c0)
at scipy/integrate/quadpack/dqk21.f:179
179 in scipy/integrate/quadpack/dqk21.f
(gdb) c
Continuing.
Program exited with code 030000000035.
}}}
----
--
Comment(by josefpktd):
Which numpy version, and how did you install numpy and scipy?
I don't have a problem with this WindowsXP 32
{{{
C:\Josef\work-oth>python -c "from scipy.integrate import quad; print
quad(lambda
x: x+1, 1.0, 2.0)"
(2.5, 2.7755575615628914e-014)
C:\Josef\work-oth>python
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
(Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
>>> scipy.version.version
'0.8.0.dev6156'
>>> import numpy
>>> numpy.version.version
'1.4.0'
>>>
}}}
--
Ticket URL: <http://projects.scipy.org/scipy/ticket/1170#comment:1>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.
More information about the Scipy-tickets
mailing list