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


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

Re: Bug in Series with NonCommutativeProduct?

From Daniel Lichtblau <danl@wolfram.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Bug in Series with NonCommutativeProduct?
Date 2011-10-14 09:59 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j79160$i4b$1@smc.vnet.net> (permalink)
References <201110130748.DAA02390@smc.vnet.net>

Show all headers | View raw


On 10/13/2011 02:48 AM, D J G C wrote:
>> Series[(A h) ** (B h), {h, 0, 2}]
>
> ... + A B  h^2+O[h]^3
>
> The problem is the appearance of a commutative product A B. It should
> instead be A ** B
>
> However applying the D gives the correct answer:
>
>> D[(A h ) ** (B h), {h, 2}]
>
> 0**(B h)+2 A**B+(A h)**0

It's just doing a "blind" Taylor expansion. One can see this by 
replacing NonCommutativeMultiply with some (undefined) function f:

In[242]:= Series[f[(A h), (B h)], {h, 0, 2}]

Out[242]= SeriesData[h, 0, {
f[0, 0], B Derivative[0, 1][f][0, 0] + A Derivative[1, 0][f][0, 0],
   Rational[1, 2] (
    B^2 Derivative[0, 2][f][0, 0] + 2 A B Derivative[1, 1][f][
      0, 0] + A^2 Derivative[2, 0][f][0, 0])}, 0, 3, 1]


Daniel Lichtblau
Wolfram Research

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


Thread

Re: Bug in Series with NonCommutativeProduct? Daniel Lichtblau <danl@wolfram.com> - 2011-10-14 09:59 +0000
  Re: Bug in Series with NonCommutativeProduct? D J G C <dundjoh@googlemail.com> - 2011-10-20 11:46 +0000

csiph-web