MathGroup Archive 1999

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

Search the Archive

Re: Manipulating differential equations


Hi,

try

dg1 /. Thread[{#,D[#,x],D[#,x,x]} & /@ (c[x]->Exp[-a x])]

Hope that helps
  Jens

Martin Heimann wrote:
> 
> Dear colleagues,
> 
> I would like to insert test functions into an expression that contains
> differentials:
> 
> dg1 = c''[x] + g c'[x]
> I would like e.g. to replace c[x] by Exp[-a x]:
> 
> dg1/.c[x]->Exp[-a x]
> 
> but this doesn't work; one has to put substitution rules for each of the
> derivatives explicitly. Is there a more elegant way to achieve this?
> 
> Cheers,
> Martin Heimann


  • Prev by Date: Re: Concurrent Curve Fitting...
  • Next by Date: Re: trouble with greek letter output to EPS
  • Previous by thread: Re: Manipulating differential equations
  • Next by thread: Linear Interpolation