Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #16566

Re: Keeping the correct order

From Oliver Jennrich <oliver.jennrich@gmx.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Keeping the correct order
Date 2014-02-15 08:58 +0000
Message-ID <ldna7t$289$1@smc.vnet.net> (permalink)
References <ldhn3u$jnv$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


Kevin <kjm@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

Back to comp.soft-sys.math.mathematica | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Keeping the correct order Kevin <kjm@KevinMcCann.com> - 2014-02-13 06:01 +0000
  Re: Keeping the correct order Oliver Jennrich <oliver.jennrich@gmx.net> - 2014-02-15 08:58 +0000
    Re: Keeping the correct order "Kevin J. McCann" <kjm@KevinMcCann.com> - 2014-02-16 04:02 +0000

csiph-web