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


Groups > comp.soft-sys.math.mathematica > #16562 > unrolled thread

Keeping the correct order

Started byKevin <kjm@KevinMcCann.com>
First post2014-02-13 06:01 +0000
Last post2014-02-16 04:02 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  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

#16562 — Keeping the correct order

FromKevin <kjm@KevinMcCann.com>
Date2014-02-13 06:01 +0000
SubjectKeeping the correct order
Message-ID<ldhn3u$jnv$1@smc.vnet.net>
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?

Thanks,

Kevin

[toc] | [next] | [standalone]


#16566

FromOliver Jennrich <oliver.jennrich@gmx.net>
Date2014-02-15 08:58 +0000
Message-ID<ldna7t$289$1@smc.vnet.net>
In reply to#16562
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

[toc] | [prev] | [next] | [standalone]


#16569

From"Kevin J. McCann" <kjm@KevinMcCann.com>
Date2014-02-16 04:02 +0000
Message-ID<ldpd9j$6na$1@smc.vnet.net>
In reply to#16566
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
>

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web