MathGroup Archive 1999

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

Search the Archive

Integration of very simple partwise definded functions fails


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


  • Prev by Date: Bug with Find in 3.0.2
  • Next by Date: accessing large files
  • Previous by thread: Re: Bug with Find in 3.0.2
  • Next by thread: Re: Integration of very simple partwise definded functions fails