MathGroup Archive 2002

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

Search the Archive

Re: Problem: Integrate

  • To: mathgroup at smc.vnet.net
  • Subject: [mg33619] Re: [mg33589] Problem: Integrate
  • From: BobHanlon at aol.com
  • Date: Wed, 3 Apr 2002 18:08:27 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

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