MathGroup Archive 2000

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

Search the Archive

Integrate with If


Why does

	Integrate[If[Sin[t] > 0, 1, 0] , {t, -Pi, Pi}]

evaluate to 2Pi?

	Plot[If[Sin[t] > 0, 1, 0] , {t, -Pi, Pi} ]

looks all right.


Puzzled,

Johan Berglind,
Chalmers, Goteborg,
Sweden.


  • Prev by Date: Method of Characteristics
  • Next by Date: Evaluating expression: help
  • Previous by thread: Method of Characteristics
  • Next by thread: Re: Integrate with If