oh, also, if you prefer to see exp(-x^2) instead of exp(x^2) in
the denominator, consider
exptdispflag:false;
ratdisrep(diff (rat(f(x,r)),x,2));
----- Original Message -----
From: Milan Lukic
Date: Monday, August 8, 2005 0:19 am
Subject: Re: [Maxima] factoring expressions on demand
> * Kamaraju Kusumanchi 0400]:
> > (%i1) f(x,r) := exp(-x*x+r);
> >
> > (%o1) f(x, r) := EXP((- x) x + r)
> > (%i2) ratsimp( diff( f(x,r), x, 2) );
> >
> > 2
> > r 2 r - x
> > (%o2) (4 %E x - 2 %E ) %E
> >
> >
> > But in (%o2) it could have factored out 2 * exp(r-x*x) instead of
> just
> > exp(-x*x). How can I tell maxima to factor out these common
> factors also?
> >
>
> Perhaps. factor(diff(f(x,r),x,2)) ?
>
> Milan
>
> > thanks
> > raju
> >
>
> --
>
> _______________________________________________
> Maxima mailing list
> Maxima@www.math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>