[sage-devel] Re: Error when calling maxima.

2009-11-16 Thread William Stein
On Mon, Nov 16, 2009 at 8:11 PM, Nick Alexander wrote: > > > On 16-Nov-09, at 8:08 PM, Nick Alexander wrote: > >> >>> This is because when you type "from scipy import integrate" you are >>> overwriting the integrate function. (There can only be one thing >>> named >>> integrate at a time in a giv

[sage-devel] Re: Error when calling maxima.

2009-11-16 Thread Nick Alexander
On 16-Nov-09, at 8:08 PM, Nick Alexander wrote: > >> This is because when you type "from scipy import integrate" you are >> overwriting the integrate function. (There can only be one thing >> named >> integrate at a time in a given scope.) > > I agree that this is the cause, but it is still a

[sage-devel] Re: Error when calling maxima.

2009-11-16 Thread Nick Alexander
> This is because when you type "from scipy import integrate" you are > overwriting the integrate function. (There can only be one thing named > integrate at a time in a given scope.) I agree that this is the cause, but it is still a bug. Why on earth does the toplevel integrate function have

[sage-devel] Re: Error when calling maxima.

2009-11-16 Thread Robert Bradshaw
On Nov 16, 2009, at 4:47 PM, Strav wrote: > If I run the code below: > > from scipy import integrate > > def fn(x): >return cos(3*x)^4 > > res = integrate.quad(fn, 0, pi/6) > > - > > and then try: > > maxima(integrate(cos(3*x)^4)) > > I get: > -