Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

Re: Stop extrapolation outside range

  • To: mathgroup at smc.vnet.net
  • Subject: [mg32705] Re: Stop extrapolation outside range
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 7 Feb 2002 05:09:31 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <a3qr44$295$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

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