MathGroup Archive 2002

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

Search the Archive

Re: Stop extrapolation outside range


Hi,

don't ask for values outside of the interval ?

> data = {{x1,y1}.......{xn,yn}};
> int = Interpolate[data];
> t1=Table[int[x],{x, xi, xn, dx}]
>

what else should Mathematica do ? use the periodic
values f[x1+Mod[(x-x1),(xn-x1)]]
return Infinity so that the function can't be plotted ?

Regards
  Jens

Yas wrote:
> 
> Hi,
> How do I go about stopping Mathematica from using extrapolation when the
> specified data range falls outside the actual data range from which the
> Interpolating function was generated?
> 
> e.g.
> data = {{x1,y1}.......{xn,yn}};
> int = Interpolate[data];
> t1=Table[int[x],{x, xi, xf, dx}]
> 
> with xn != xf.
> 
> When xn != xf, Mathematica correctly points out that the point xf lies
> outside the data range of the Interpolating function and proceeds to
> extrapolate. How do I stop it from extrapolating.
> 
> Thanks
> Yas


  • Prev by Date: Re: The prime factors of n.
  • Next by Date: Re: Stop extrapolation outside range
  • Previous by thread: Re: Stop extrapolation outside range
  • Next by thread: Docs for ml32i1.dll