## Re: [Reduce-algebra-developers] x^(n+1) / (n+1) not x^n * x / (n+1)

 Re: [Reduce-algebra-developers] x^(n+1) / (n+1) not x^n * x / (n+1) From: Rainer Schöpf - 2012-05-24 21:24:16 ```On Thu, 24 May 2012 at 22:01 +0100, Michael Borcherds wrote: > Is there a way to configure Reduce so that integrating x^n produces > x^(n+1) / (n+1) rather than x^n * x / (n+1) ? Hello, set the switch combineexpt to on: on combineexpt; int(x^n,x); n + 1 x -------- n + 1 Rainer ```

 [Reduce-algebra-developers] x^(n+1) / (n+1) not x^n * x / (n+1) From: Michael Borcherds - 2012-05-24 21:01:20 ```Hi, Is there a way to configure Reduce so that integrating x^n produces x^(n+1) / (n+1) rather than x^n * x / (n+1) ? I want this form for the new GeoGebra CAS View, mostly so that students (and teachers!) aren't surprised by an unfamiliar form. thanks, Mike ```
 Re: [Reduce-algebra-developers] x^(n+1) / (n+1) not x^n * x / (n+1) From: Rainer Schöpf - 2012-05-24 21:24:16 ```On Thu, 24 May 2012 at 22:01 +0100, Michael Borcherds wrote: > Is there a way to configure Reduce so that integrating x^n produces > x^(n+1) / (n+1) rather than x^n * x / (n+1) ? Hello, set the switch combineexpt to on: on combineexpt; int(x^n,x); n + 1 x -------- n + 1 Rainer ```
 Re: [Reduce-algebra-developers] x^(n+1) / (n+1) not x^n * x / (n+1) From: Michael Borcherds - 2012-05-25 07:09:36 ```Thanks for the fast answer! That's a good improvement for eg x^4 It doesn't affect eg (x+1)^3 or x^n - any way to improve those too? thanks, Mike On 24 May 2012 22:24, Rainer Schöpf wrote: > On Thu, 24 May 2012 at 22:01 +0100, Michael Borcherds wrote: > >  > Is there a way to configure Reduce so that integrating x^n produces >  > x^(n+1) / (n+1) rather than x^n * x / (n+1) ? > > Hello, > > set the switch combineexpt to on: > > on combineexpt; > int(x^n,x); > >  n + 1 >  x > -------- >  n + 1 > > >  Rainer ```
 Re: [Reduce-algebra-developers] x^(n+1) / (n+1) not x^n * x / (n+1) From: Rainer Schöpf - 2012-05-25 08:47:08 ```On Fri, 25 May 2012, Michael Borcherds wrote: > Thanks for the fast answer! That's a good improvement for eg x^4 > > It doesn't affect eg (x+1)^3 or x^n - any way to improve those too? Are you sure you are using a recent version of Reduce? As my last mail showed, x^n behaves like you want. As for (x+1)^3, the integrator expands the polynomial before performing the integration. I don't see a way around this. Note that this gives a result with constant term equal to zero. Rainer ```
 Re: [Reduce-algebra-developers] x^(n+1) / (n+1) not x^n * x / (n+1) From: Michael Borcherds - 2012-05-25 12:23:50 ```Sorry, our mistake. Integrating x^n is working as you said: thanks! Integrating (x+1)^3, (x+1)^a, (x+b)^a still behave as before. (x+b)^a isn't expanded and still gives an "unsimplified" answer. thanks, Mike On 25 May 2012 09:46, Rainer Schöpf wrote: > On Fri, 25 May 2012, Michael Borcherds wrote: > >  > Thanks for the fast answer! That's a good improvement for eg x^4 >  > >  > It doesn't affect eg (x+1)^3 or x^n - any way to improve those too? > > Are you sure you are using a recent version of Reduce? As my last mail showed, > x^n behaves like you want. > > As for (x+1)^3, the integrator expands the polynomial before performing the > integration.  I don't see a way around this.  Note that this gives a result with > constant term equal to zero. > >  Rainer ```