MathGroup Archive 1998

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

Search the Archive

Re: Values from InterpolatingFunction

  • To:
  • Subject: [mg11853] Re: Values from InterpolatingFunction
  • From: Paul Abbott <>
  • Date: Fri, 3 Apr 1998 03:45:17 -0500
  • Organization: University of Western Australia
  • References: <6fskub$>

Volker Doerr wrote:

> I have the following
>    InterpolatingFunction[{{0.,365.}},<>][t]
> produced by Function D from another InterpolatingFunction, and want
> simply to get the approximate values at specific  points. I cannot find
> a direct solution, probably because  the function has symbolic form.

	InterpolatingFunction[{{0.,365.}},<>][t] /. t -> 3

will give you the value at t == 3.  Alternatively, you can avoid
including the dummy argument t as follows:

In[1]:= Table[i\^2, {i, 5}]\)
Out[1]= {1,4,9,16,25}
In[2]:= f=Interpolation[%];
In[3]:= g=f';
In[4]:= g[3]
Out[4]= 6


Paul Abbott                                   Phone: +61-8-9380-2734
Department of Physics                           Fax: +61-8-9380-1014
The University of Western Australia            Nedlands WA  6907  AUSTRALIA                   

            God IS a weakly left-handed dice player

  • Prev by Date: Re: Values from InterpolatingFunction
  • Next by Date: Re: fractional simplification
  • Prev by thread: Re: Values from InterpolatingFunction
  • Next by thread: Trapping ReadList error