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


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

Re: Keeping the correct order

From "Kevin J. McCann" <kjm@KevinMcCann.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Keeping the correct order
Date 2014-02-16 04:02 +0000
Message-ID <ldpd9j$6na$1@smc.vnet.net> (permalink)
References <ldhn3u$jnv$1@smc.vnet.net> <ldna7t$289$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


Nothing "dirty" about it if it works! Thanks, it does.

Kevin

On 2/15/2014 3:58 AM, Oliver Jennrich wrote:
> 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
>

Back to comp.soft-sys.math.mathematica | Previous | NextPrevious 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