Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

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

Search the Archive

Re: interpolatingfunction

  • To: mathgroup at
  • Subject: [mg15892] Re: interpolatingfunction
  • From: "Allan Hayes" <hay at>
  • Date: Wed, 17 Feb 1999 23:33:39 -0500
  • References: <7a2bg1$>
  • Sender: owner-wri-mathgroup at

phpcp at wrote in message <7a2bg1$1th at>...
>hi all,
>i solved a d.e. using NDSolve and got a solution in
>InterpolatingFunction form. How can i define this as a function that
>returns values using an argument.


An expression InterpolatingFunction[...] behave as a function:

NDSolve[{x'[t] == x[t], x[0]==1}, x,{t,0,1}]

{{x -> InterpolatingFunction[{{0.,1.}},"<>"]}}

f = x/.%[[1]]





Allan Hayes
Mathematica Training and Consulting
hay at
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

  • Prev by Date: Linear algebra
  • Next by Date: RE: How to print a determinant in the traditional way
  • Previous by thread: Re: interpolatingfunction
  • Next by thread: Re: interpolatingfunction