1 @c -----------------------------------------------------------------------------
2 @c File : makeOrders.de.texi
3 @c License : GNU General Public License (GPL)
7 @c This file is part of Maxima -- GPL CAS based on DOE-MACSYMA
8 @c -----------------------------------------------------------------------------
11 * Functions and Variables for makeOrders::
14 @c -----------------------------------------------------------------------------
15 @node Functions and Variables for makeOrders, , makeOrders, makeOrders
16 @section Functions and Variables for makeOrders
18 @c -----------------------------------------------------------------------------
19 @deffn {Function} makeOrders (@var{indvarlist}, @var{orderlist})
21 Returns a list of all powers for a polynomial up to and including the arguments.
24 (%i1) load("makeOrders")$
26 (%i2) makeOrders([a,b],[2,3]);
27 (%o2) [[0, 0], [0, 1], [0, 2], [0, 3], [1, 0], [1, 1],
28 [1, 2], [1, 3], [2, 0], [2, 1], [2, 2], [2, 3]]
29 (%i3) expand((1+a+a^2)*(1+b+b^2+b^3));
31 (%o3) a b + a b + b + a b + a b + b + a b + a b
36 where @code{[0, 1]} is associated with the term @math{b} and @code{[2, 3]} with
39 To use this function write first @code{load("makeOrders")}.
42 @c @category{Polynomials} @category{Share packages} @category{Package makeOrders}
46 @c --- End of file makeOrders.de.texi ------------------------------------------