Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Integration of piecewise function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg52493] Re: Integration of piecewise function
  • From: Peter Pein <petsie at arcor.de>
  • Date: Mon, 29 Nov 2004 01:22:47 -0500 (EST)
  • References: <cobqcr$6lr$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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
> 
It's a bit tricky...


X[w_] := UnitStep[w, 2 - w] - UnitStep[w - 2, 4 - w]

-- 
Peter Pein
10245 Berlin


  • Prev by Date: Proving inequalities with Mathematica
  • Next by Date: canonical mathematical expression represenation?
  • Previous by thread: Re: Integration of piecewise function
  • Next by thread: Re: Integration of piecewise function