*To*: mathgroup@smc.vnet.net*Subject*: [mg11853] Re: Values from InterpolatingFunction*From*: Paul Abbott <paul@physics.uwa.edu.au>*Date*: Fri, 3 Apr 1998 03:45:17 -0500*Organization*: University of Western Australia*References*: <6fskub$gsc@smc.vnet.net>

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 ____________________________________________________________________