MathGroup Archive 2001

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

Search the Archive

Re: Integration of "Which" function


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