2 * Functions and Variables for makeOrders::
6 @node Functions and Variables for makeOrders, , makeOrders-pkg, makeOrders-pkg
7 @section Functions and Variables for makeOrders
9 @anchor{makeOrders_func}
10 @deffn {Function} makeOrders (@var{indvarlist},@var{orderlist})
11 Returns a list of all powers for a polynomial up to and including the arguments.
14 (%i1) load("makeOrders")$
16 (%i2) makeOrders([a,b],[2,3]);
17 (%o2) [[0, 0], [0, 1], [0, 2], [0, 3], [1, 0], [1, 1],
18 [1, 2], [1, 3], [2, 0], [2, 1], [2, 2], [2, 3]]
19 (%i3) expand((1+a+a^2)*(1+b+b^2+b^3));
21 (%o3) a b + a b + b + a b + a b + b + a b + a b
25 where @code{[0, 1]} is associated with the term @math{b} and @code{[2, 3]} with @math{a^2 b^3}.
27 To use this function write first @code{load("makeOrders")}.
29 @opencatbox{Categories:}
30 @category{Polynomials}
31 @category{Share packages}
32 @category{Package makeOrders}