Re: interpolating function

*To*: mathgroup at smc.vnet.net*Subject*: [mg22251] Re: interpolating function*From*: "Kevin J. McCann" <kevin.mccann at jhuapl.edu>*Date*: Sat, 19 Feb 2000 01:33:54 -0500 (EST)*Organization*: Johns Hopkins University Applied Physics Lab, Laurel, MD, USA*References*: <88jum7$9oe@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

Here is the general idea. You use conditional definitions with th e"/;" construct, e.g. f[x_ /; 0 <= x <= 10] := x f[x_ /; 10 < x <= 20] := x^2 Plot[f[x],{x,0,20}]; Also note the delayed equal in each definition. Kevin -- Kevin J. McCann Johns Hopkins University APL Bernd Brandt <bernd at bio.vu.nl> wrote in message news:88jum7$9oe at smc.vnet.net... > Dear Mathgroup members, > > I have been plotting, using interpolating functions: > > Show[Plot[Con[x] /. sol1, {x, 0, 10}], Plot[Con[x] /. sol2, {x, 10, 12}]] > > I imagine there is a way to join up these two interpolating functions > to cover to complete domain {x, 0, 10} in one Interpolating function > object. However, I cannot find how to do this. > > Any suggestions would be appreciated. > > Thank you. > > Bernd >