Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Integer' topicStudent Support Forum > General > Archives > "Integer"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Henry Lamb
10/03/03 7:39pm

Unfortunately, Integrate won't work with the Abs function. However, you can rewrite the integrand as a piecewise function with UnitStep.

If you plot the function, you'll see that it has two corners, at x=-1 and x=1. So you can define your function and integrate it like this.

Integrate[
(x^2-x)UnitStep[-(x+1)]+
(-x^2-x+2)UnitStep[(x+1)(1-x)]+
(x^2-x-2)UnitStep[x-1],
x];

URL: ,

Subject (listing for 'Integer')
Author Date Posted
Integer Riikka 09/14/03 10:38am
Re: Integer Henry Lamb 10/03/03 7:39pm
< Previous CommentHelp | Reply To Comment | Reply To Topic