MathGroup Archive 1998

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

Search the Archive

Re: Values from InterpolatingFunction



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

Cheers,
	Paul 

____________________________________________________________________ 
Paul Abbott                                   Phone: +61-8-9380-2734
Department of Physics                           Fax: +61-8-9380-1014
The University of Western Australia            Nedlands WA  6907       
mailto:paul@physics.uwa.edu.au  AUSTRALIA                            
http://www.pd.uwa.edu.au/~paul

            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