Integration of "Which" function

*To*: mathgroup at smc.vnet.net*Subject*: [mg32100] Integration of "Which" function*From*: klepachd at yahoo.com (Doron)*Date*: Mon, 24 Dec 2001 23:44:30 -0500 (EST)*Sender*: owner-wri-mathgroup at wolfram.com

Hello , I am trying to integrate : Integrate[Which[0 <= x <= 1/2, 0, 1/2 < x <= 1, 2], {x, 0, 1}] Why doesn`t it work ? Thank you for your help .

**Follow-Ups**:**Re: Integration of "Which" function***From:*"milkcart" <milkcart@m17.alpha-net.ne.jp>