Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Merging InterpolationFunctions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg57263] Re: [mg57192] Merging InterpolationFunctions
  • From: Chris Chiasson <chris.chiasson at gmail.com>
  • Date: Sun, 22 May 2005 03:59:50 -0400 (EDT)
  • References: <200505200843.EAA00614@smc.vnet.net>
  • Reply-to: Chris Chiasson <chris.chiasson at gmail.com>
  • Sender: owner-wri-mathgroup at wolfram.com

You can use UnitStep (or Which) and FunctionInterpolation to make a
new interpolating function.

On 5/20/05, Kerry Kim <kjkim at u.washington.edu> wrote:
> 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
> 
> 


-- 
Chris Chiasson
http://chrischiasson.com/
1 (810) 265-3161


  • Prev by Date: Re: Temporary style change in a notebook?
  • Next by Date: Re: Help for an integral
  • Previous by thread: Merging InterpolationFunctions
  • Next by thread: Re: Merging InterpolationFunctions