[sympy] Re: Strange integration by parts result

2009-08-15 Thread Ondrej Certik
On Sat, Aug 15, 2009 at 8:28 PM, Aaron S. Meurer wrote: > > OK. I just wanted to be sure.  Sometimes there is strange behavior in > SymPy that turns out to actually be intentional.  This is now issue > 1604. Returning a wrong result is never intentional. Ondrej --~--~-~--~~-

[sympy] Re: Strange integration by parts result

2009-08-15 Thread Aaron S. Meurer
OK. I just wanted to be sure. Sometimes there is strange behavior in SymPy that turns out to actually be intentional. This is now issue 1604. Aaron Meurer On Aug 15, 2009, at 8:25 PM, Ondrej Certik wrote: > > On Sat, Aug 15, 2009 at 8:17 PM, Aaron S. Meurer > wrote: >> >> >>> integrate(

[sympy] Re: Strange integration by parts result

2009-08-15 Thread Ondrej Certik
On Sat, Aug 15, 2009 at 8:17 PM, Aaron S. Meurer wrote: > >  >>> integrate(exp(x)*g(x), x) > exp(x)*g(x) - D(g(x), x)*exp(x) > > Can someone tell me, is this a bug?  If this is intentional, can > someone please explain why?  If I remember my integration by parts > correctly, that second term shoul

[sympy] Strange integration by parts result

2009-08-15 Thread Aaron S. Meurer
>>> integrate(exp(x)*g(x), x) exp(x)*g(x) - D(g(x), x)*exp(x) Can someone tell me, is this a bug? If this is intentional, can someone please explain why? If I remember my integration by parts correctly, that second term should be Integral(D(g(x), x)*exp(x), x), though really it should ju

[sympy] Re: NameError with nsolve

2009-08-15 Thread smichr
> > Second Variant (using Poly) kind of works, but there is a small fix > > required. "mypoly.coeffs" ommits the zeros, therefore if the > > coefficients for x^0, x^1 and x^3 are 0, they would not appear. Is > > this a bug or a feature? [cut] > Now there must be a better way to do this [...to get

[sympy] Re: NameError with nsolve

2009-08-15 Thread smichr
On Aug 14, 3:37 pm, New2Sympy wrote: > Hi again, > > I am getting confused now. See the script and the results below. > You are running into numerical issues (underflow, I belileve) because of scaling issues. If you don't normalize your polynomial then the the coefficients of the polynomial are

[sympy] Re: Plotting Solids/Areas of Revolutions

2009-08-15 Thread smichr
On Aug 14, 10:42 pm, sunite wrote: > Hi, I was wondering if there was any method to create such a plot. > Replies much appreciated!!! If a wire frame of such things is sufficient, Eck's xModel applet is a simple way to generate a wireframe of a surface and then be able to rotate it, all throug

[sympy] Re: los alamos sprint

2009-08-15 Thread Luke
Yep. On Aug 14, 1:23 pm, "Aaron S. Meurer" wrote: > On Aug 10, 2009, at 4:39 PM, Fabian Pedregosa Izquierdo wrote: > > > > > > > Ondrej Certik wrote: > >> On Fri, Aug 7, 2009 at 5:29 PM, Ondrej Certik   > >> wrote: > >>> Hi, > > >>> we are having a little sprint in Los Alamos now, with me, Aaron