MathGroup Archive 2009

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

Search the Archive

Re: Bug with Integrate in v7?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg103262] Re: Bug with Integrate in v7?
  • From: guerom00 <guerom00 at gmail.com>
  • Date: Fri, 11 Sep 2009 19:57:19 -0400 (EDT)
  • References: <h859sa$pva$1@smc.vnet.net> <h87pdf$5f6$1@smc.vnet.net>

I stumbled on this one :

In[59]:= f=Piecewise[{
{Sin[x]^4,-\[Pi]<=x<=-\[Pi]/2},
{Sin[x]^10,-\[Pi]/2<=x<=\[Pi]/2},
{Sin[x]^16,\[Pi]/2<x<=\[Pi]}
}];
NIntegrate[f Sin[x],{x,-\[Pi],\[Pi]}]
Integrate[f Sin[x],{x,-\[Pi],\[Pi]}]

Out[60]= 0.
Out[61]= -(25576/109395)


  • Prev by Date: condense axis
  • Next by Date: Unexpected Characters Appearing in Results
  • Previous by thread: Re: Bug with Integrate in v7?
  • Next by thread: Re: Re: Bug with Integrate in v7?