MathGroup Archive 2002

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

Search the Archive

Re: Problem: Integrate


In a message dated 4/3/02 1:44:11 AM, abaehr at srt.tu-darmstadt.de writes:

>for
>Integrate[ -1 + Cos[\[Theta]]\^2 + Sin[\[Theta]]\^2,
>\ {\[Theta], 0, 2 \[Pi]}]
>
>I get the result
>
>ComplexInfinity
>
>though the result is obviously zero. The Calculation is OK if I remove
>one of the three terms, such that the result is no longer zero.
>
>Is this a bug?
>

I get the same error.  Whenever a problem arises, one workaround 
that frequently helps is to Simplify (or FullSimplify) expressions prior  
to the operation that is causing a problem.

$Version

4.1 for Mac OS X (November 5, 2001)

Integrate[Simplify[-1 + Cos[th]^2 + Sin[th]^2],
 
  {th, 0, 2*Pi}]

0


Bob Hanlon
Chantilly, VA  USA


  • Prev by Date: Re: how to plot 2 functions in different colors?
  • Next by Date: Step Info from NDSolve
  • Previous by thread: Problem: Integrate
  • Next by thread: Re: Problem: Integrate