Re: Integration of very simple partwise definded functions fails
- To: mathgroup at smc.vnet.net
 - Subject: [mg15804] Re: [mg15720] Integration of very simple partwise definded functions fails
 - From: Jurgen Tischer <jtischer at col2.telecom.com.co>
 - Date: Sun, 7 Feb 1999 02:04:19 -0500 (EST)
 - Organization: Universidad del Valle
 - References: <199902050842.DAA09933@smc.vnet.net>
 - Sender: owner-wri-mathgroup at wolfram.com
 
Daniel,
Help on NIntegrate:
"NIntegrate tests for singularities at the end points of the integration
range."
and 
"NIntegrate[f, {x, x_0, x_1, ? , x_k}] tests for singularities at each
of the intermediate points x_i."
So
In[1]:= NIntegrate[f[x],{x,0,2,3}]
Out[1]= 4.
Jurgen
"D.O." wrote:
> 
> Hi,
> 
> I was quite surprised that Mathematica will not evaluate any Integrals
> of simple functions like
> 
> f[x_/;x<=2]:=1
> f[x_/;x>2]:=2
> 
> Integrate[f[x],{x,0,1}]
> 
> NIntegrate also complains about singularities.
> 
> Do I miss something? There must be a fast way out...
> 
> Thanks for all suggestions!
> 
> Daniel Oberfeld
> Institut fuer Psychologie
> Allgemeine Psychologie
> TU Berlin
> FS1, Raum FS105
> Franklinstr. 5-7
> 10587 Berlin
> T. 030/314-79541
> Fax. 030/314-25996
- References:
- Integration of very simple partwise definded functions fails
- From: "D.O." <oberfeld@psych.gp.TU-Berlin.DE>
 
 
 - Integration of very simple partwise definded functions fails