Question: Do the powcreate work with series of list

I tried to build Pascal's triangle with powcrate as bellow described. It seem not worked and I don't know why (I am using Maple 12). Could you please help me. Thks a lot

Try to build Pascal's triangle with powcreate

Try with 2 different ways:

with u(n)  use subsop and zip to handle the list

with v(n)  use op and zip to handle the list


> restart;
> with(powseries);
 [compose, evalpow, inverse, multconst, multiply, negative, powadd, powcos,

   powcreate, powdiff, powexp, powint, powlog, powpoly, powsin, powsolve,

   powsqrt, quotient, reversion, subtract, tpsform]
>
> powcreate(u(n) = [1, op(zip(proc (i, k) options operator, arrow; i+k end proc, subsop(1 = NULL, u(n-1)), subsop(-1 = NULL, u(n-1)))), 1], u(0) = [1, 1]);
> powcreate(v(n) = zip(proc (i, k) options operator, arrow; i+k end proc, [0, op(v(n-1))], [op(v(n-1)), 0]), v(0) = [1, 1]);
> u(0); v(0);
                                   [1, 1]
                                   [1, 1]
> u(1);
Error, (in u) invalid input: u uses a 1st argument, powparm, which is missing

Not worked , while manually calculation returned correct list for u(1) as following:
> [> [1, op(zip(proc (i, k) options operator, arrow; i+k end proc, subsop(1 = NULL, u(0)), subsop(-1 = NULL, u(0)))), 1];

NULL;
                                  [1, 2, 1]
> v(1);

                                   [0, 0]

Not worked correctly , while manually calculation returned correct list for v(1) as following:

> zip(proc (i, k) options operator, arrow; i+k end proc, [0, op(v(0))], [op(v(0)), 0]);
                                  [1, 2, 1]
>



Please Wait...