Re: How to get range of InterpolatingFunction ?
- To: mathgroup at smc.vnet.net
- Subject: [mg64030] Re: [mg64017] How to get range of InterpolatingFunction ?
- From: <bsyehuda at gmail.com>
- Date: Sat, 28 Jan 2006 02:23:42 -0500 (EST)
- References: <200601271013.FAA19053@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, you can use Part for any Mathematica expression (List is only a specific case) so I generate a similar case sol = NDSolve[{y'[x] == y[x], y[0] == 1}, y, {x, 0, 3}] and extract the required part (y /. sol[[1]])[[1, 1]] However, this is not a good practice in general, since the internal representation of InterpolationFunction may change in the future and arguments may change positions. yehuda On 1/27/06, kowald at molgen.mpg.de <kowald at molgen.mpg.de> wrote: > > Hello everybody, > > I wonder how I can find out the range for which an > InterpolatingFunction object is valid ? > If I have {{y -> InterpolatingFunction[{{0., 3.}}, <>]}} , how can I > extract the 0 and the 3 ?? > > Many thanks, > > Axel > >
- References:
- How to get range of InterpolatingFunction ?
- From: kowald@molgen.mpg.de
- How to get range of InterpolatingFunction ?