Re: Integration of piecewise function

*To*: mathgroup at smc.vnet.net*Subject*: [mg52480] Re: [mg52463] Integration of piecewise function*From*: yehuda ben-shimol <benshimo at bgu.ac.il>*Date*: Mon, 29 Nov 2004 01:22:27 -0500 (EST)*References*: <200411280606.BAA06619@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

In version 5.1 this problem is taken care of by the new Pieswise[] function that is integrated to all the necessary functions such as Integrate, NDSolve, D[] etc. yehuda On Sunday 28 November 2004 08:06, Riccardo wrote: > <inviati & spediti> > > I just defined a function like this: > > X[\[Omega]_] := 0 /; \[Omega] < 0; > X[\[Omega]_] := 1 /; 0 < \[Omega] < 2; > X[\[Omega]_] := -1 /; 2 < \[Omega] < 4; > X[\[Omega]_] := 0 /; \[Omega] > 4; > > Is it possible now to integrate it from -infinity to +infinity? I've > already tried and it doesn't give me the result. > Thanks. > > Luca

**References**:**Integration of piecewise function***From:*Riccardo <ricky@nospam.it>