MathGroup Archive 1997

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

Search the Archive

Re: InterpolatingFunction[] question

  • To: mathgroup at
  • Subject: [mg7192] Re: [mg7150] InterpolatingFunction[] question
  • From: penny at (Des Penny)
  • Date: Wed, 14 May 1997 01:11:28 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

>I'm currently using Mathemaitca to solve a tricky 2nd-order differential
>equation and am getting " InterpolatingFunction[{0,97.7}, <>] " as a
>result.  What I'd like to do is to mark the 0 and the 97.7 as xmin and
>xmax respectively (i.e. assign to xmin the first number in braces, and
>assign to xmax the second number in braces).  Is there any way to do

Hi Jack:

Is this what you want:

In: sol = NDSolve[{Derivative[1][y][x] == y[x], y[0] == 1}, y, {x, 0, 2}]

Out: {{y -> InterpolatingFunction[{{0.,2.}},"<>"]}}

In: min=sol[[1,1,2,1,1,1]]

Out: 0

Hope this helps.


Des Penny

Des Penny
Physical Science Dept.
Southern Utah University
Cedar City, UT 84720

VOICE: (Office): (801) 586-7708
       (Home)  : (801) 586-2286
FAX:    (801) 865-8051
e-mail: penny at

  • Prev by Date: Re: Confused about replacement rules
  • Next by Date: New "User's Guide for Macintosh" for 3.0?
  • Previous by thread: Re: InterpolatingFunction[] question
  • Next by thread: Re: Plot of x=4