MathGroup Archive 2001

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

Search the Archive

Re: Integration of "Which" function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg32106] Re: [mg32100] Integration of "Which" function
  • From: "milkcart" <milkcart at m17.alpha-net.ne.jp>
  • Date: Thu, 27 Dec 2001 03:34:07 -0500 (EST)
  • References: <200112250444.XAA18441@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hello 

You should use NIntegrate

In[7]:=
NIntegrate[Which[0 <= x <= 1/2, 0, 1/2 < x <= 1, 2], {x, 0, 1}]

Out[7]=
1.



> 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 .

*************
milkcart
************* 



  • Prev by Date: Re: Integration of "Which" function
  • Next by Date: Re: remicing the mesh in ParamtericPlot3D
  • Previous by thread: Integration of "Which" function
  • Next by thread: Re: Integration of "Which" function