MathGroup Archive 2002

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

Search the Archive

Re: Integrate fails without warning?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg35262] Re: [mg35242] Integrate fails without warning?
  • From: Juan Fuentes <jfuentes at ff.oc.uh.cu>
  • Date: Fri, 5 Jul 2002 02:19:43 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Raf
I did the integration in another way and obtaine the correct value
s[t_] := UnitStep[0.5 - t] - UnitStep[t - 0.5]
Integrate[s[t], {t, 0, 1}]
0.
Maybe the problem is in the function.
With best regards
Juan

On Wed, 3 Jul 2002, Raf wrote:

> This regards not only Calculus`Integration`, but also the built-in
> Integrate:
> Defining a square wave...
> In[1]:= ondQua[t_] := If[OddQ[Floor[2t]], -1, 1]
> ....Mathematica fails completely in computing its defined integral...
> In[2]:= Integrate[ondQua[t], {t, 0, 1}]
> Out[2]= 1
> ....without any warning or error message !!!
> How is it possible?
> 
> With NIntegrate the things goes better, but i believe that a similar risk
> with Integrate would have to be documented somewhere; if exists some notes
> about this using of Integrate on Mathematica-help, please tell me where.
> 
> Waiting your answers,
> Thanks,
> Raf.
> 
> 
> 
> 



  • Prev by Date: Re: Art Graphics in Mathematica
  • Next by Date: Re: Art Graphics in Mathematica
  • Previous by thread: Integrate fails without warning?
  • Next by thread: Re: Integrate fails without warning?