MathGroup Archive 2014

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

Search the Archive

Re: Keeping the correct order


Kevin <kjm at KevinMcCann.com> writes:

> I am doing some calculations that have terms like (1+h)(1+h'+h''). I 
> wish to do something like Series with this but only keep terms that are 
> up to some order in h. The kicker is that the derivatives are also of 
> the same order as h. How can I tell Mathematica about this?

If you don't mind a dirty trick:

(1 + h) (1 + h' + h'') /. {h -> a h, Derivative[n_][h] -> a Derivative[n][h]}

Normal@Series[%, {a,0,1}] /. a-> 1

-- 
Space - The final frontier



  • Prev by Date: Possible bug in Floor function?
  • Next by Date: Re: Possible bug in Floor function?
  • Previous by thread: Re: Keeping the correct order
  • Next by thread: Re: Keeping the correct order