On Tue, Dec 19, 2006 at 01:16:34PM -0500, Stavros Macrakis wrote:
> On 12/19/06, Daniel Lakeland <dlakelan at street-artists.org> wrote:
> > On Tue, Dec 19, 2006 at 12:37:18PM -0500, Stavros Macrakis wrote:
> > > On 12/19/06, Seth Goldberg <sigoldberg1 at yahoo.com> wrote:
> > > > integrate(1+sin(x^2),x)
> > > > Returns a complicated expression. Persists after assume(x>0)
> > >
> > > Checking with differentiation, the returned expression appears to be correct.
> >
> > It's not obvious how to do it so here's a cut and paste:
>
> Interestingly, trigrat(integrate(sin(x^2),x)) does it in one step...
> but not with the 1+ term.
whew, trigrat, I'll put that on the cheat-sheet :-)
integrate(1+sin(x^2),x);
trigrat(diff(%,x))
shows that at least the integral is either right, or the
differentiation and trigrat code have an exactly complimentary bug :-)
--
Daniel Lakeland
dlakelan at street-artists.org
http://www.street-artists.org/~dlakelan