MathGroup Archive 1999

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

Search the Archive

Re: Strange results from Integrate


Hi Serigo,

Integrate[] will use the low precision numbers you enter.
If you type just 12.5 you have only 16 digits and that is not
sufficient for the numeric of the final evaluation. Try


f[x_]:=Exp[-20*(x-12.5`256)]

Integrate[f[x],{x,12.6`256,Infinity}]

Hope that helps
  Jens

Sergio Terrazas wrote:
> 
> Dear mathgroupers:
> I was working with a probability density function when I got the following
> strange result:
> 
> f[x_]= Exp[-20 (x-12.5)]
> 
> Integrate[f[x],{x,12.6,Infinity}]
> 

snip snap snip snap ..

> What is going on?
> Is Integrate just unrelaiable with non exact numbers?? (Scary !!)
> 
> I will appreciate any comments from the insiders.
> Thanks in advance ( Oh! by the way, I an using v. 3.0.1 for windows)
> 
> Sergio Terrazas
> Juarez, Mexico


  • Prev by Date: Re: Win 98 Printing Problems
  • Next by Date: Re: CompiledFunction for matrices ??
  • Previous by thread: RE: Strange results from Integrate
  • Next by thread: fonts and mathematica/publicon