Merging InterpolationFunctions

• To: mathgroup at smc.vnet.net
• Subject: [mg57192] Merging InterpolationFunctions
• From: Kerry Kim <kjkim at u.washington.edu>
• Date: Fri, 20 May 2005 04:43:30 -0400 (EDT)
• Organization: University of Washington
• Sender: owner-wri-mathgroup at wolfram.com

```Is there a way to combine two InterpolatingFunctions which share a
common boundary, and are C0 continuous at the common boundary (the
values are continuous but the derivatives are NOT continuous at the
common boundary)?

For example, I'm trying to combine the following:

a1=NDSolve[large differential equation system, {t,0,10}]

{{e2f -> InterpolatingFunction[{{0., 10.}}, <>], E2F -> \
InterpolatingFunction[{{0., 10.}}, <>], etc...}}

a2=NDSolve[large differential equation system, {t,10,20}]
{{e2f -> InterpolatingFunction[{{10., 20.}}, <>], E2F -> \
InterpolatingFunction[{{10., 20.}}, <>], etc...}}

and the combine a1 and a2 so that I get the following:
a3=Merge[a1,a2]
{{e2f -> InterpolatingFunction[{{0., 20.}}, <>], E2F -> \
InterpolatingFunction[{{0., 20.}}, <>], etc...}}

I've read that the InterpolatingFunction internals may be version
specific, and I can't quite infer what they all mean.  I'm using
Mathematica version 5.0

Thank you!
-Kerry Kim

```

• Prev by Date: Export, Import, Convert Types Again?
• Next by Date: Re: Plotting 2d graphs?
• Previous by thread: Re: Export, Import, Convert Types Again?
• Next by thread: Re: Merging InterpolationFunctions