### Related

##### cartesian_product-listify-product-reverse

n(u):=1-u;

o(x,y):=x+y-x*y;

bnb(x,y):=o(x,n(x));

Calculate

##### cartesian_product-listify-map-product-reverse-und

1/* Konjunktion */;

und(x):=x[1]*x[2];

2/* Disjunktion */;

Calculate

##### cartesian_product-product-setdifference

1/* Produktmenge: A={...

A:{1,2,3};

B:{3,4};

Calculate

##### cartesian_product-lambda-makelist-product-setify-subset

D:setify(makelist(i,i...

W:setify(2*makelist(i...

P:cartesian_product(D...

Calculate

##### cartesian_product-is-lambda-map-powerset-product-subset

Grundmenge:{0,1,2,3,4...

Flaschen:powerset(Gru...

f(x):=cartesian_produ...

Calculate

##### cartesian_product-factor-length-listify-lsum-makelist-phi-product-sum-tex

/* will return 2^n x1...

phi (flip) := product...

parity : set (1, - 1);

Calculate

##### cartesian_product-lambda-mod-product-subset

"*"/* RELATION = TEIL...

"*"/* Eingabe der Me...

A:{3,4,8};

Calculate

coord : setify ( make...

points2d : listify ( ...

Calculate

##### cartesian_product-product

M:{1,2};

cartesian_product(M,...

Calculate

##### cartesian_product-product

A:{{1,2},3};

B:{3};

C:cartesian_product(A...

Calculate

### cartesian_product

Run Example
```(%i1)load(draw);
(%o1)            /usr/share/maxima/5.21.1/share/draw/draw.lisp
(%i2) coord: setify(makelist(k,k,-4,4));
(%o2)                 {- 4, - 3, - 2, - 1, 0, 1, 2, 3, 4}
(%i3) points2d: listify(cartesian_product (coord ,coord ));
(%o3) [[- 4, - 4], [- 4, - 3], [- 4, - 2], [- 4, - 1], [- 4, 0], [- 4, 1],
[- 4, 2], [- 4, 3], [- 4, 4], [- 3, - 4], [- 3, - 3], [- 3, - 2], [- 3, - 1],
[- 3, 0], [- 3, 1], [- 3, 2], [- 3, 3], [- 3, 4], [- 2, - 4], [- 2, - 3],
[- 2, - 2], [- 2, - 1], [- 2, 0], [- 2, 1], [- 2, 2], [- 2, 3], [- 2, 4],
[- 1, - 4], [- 1, - 3], [- 1, - 2], [- 1, - 1], [- 1, 0], [- 1, 1], [- 1, 2],
[- 1, 3], [- 1, 4], [0, - 4], [0, - 3], [0, - 2], [0, - 1], [0, 0], [0, 1],
[0, 2], [0, 3], [0, 4], [1, - 4], [1, - 3], [1, - 2], [1, - 1], [1, 0],
[1, 1], [1, 2], [1, 3], [1, 4], [2, - 4], [2, - 3], [2, - 2], [2, - 1],
[2, 0], [2, 1], [2, 2], [2, 3], [2, 4], [3, - 4], [3, - 3], [3, - 2],
[3, - 1], [3, 0], [3, 1], [3, 2], [3, 3], [3, 4], [4, - 4], [4, - 3],
[4, - 2], [4, - 1], [4, 0], [4, 1], [4, 2], [4, 3], [4, 4]]
(%i4) vf2d(x,y):=  vector ([x,y],[cos(y),x]/6);
[cos(y), x]
(%o4)              vf2d(x, y) := vector([x, y], -----------)
6
(%i5) vect2: makelist(vf2d(k[1],k[2]),k,points2d );
cos(4)    2                        cos(3)    2
(%o5) [vector([- 4, - 4], [------, - -]), vector([- 4, - 3], [------, - -]),
6       3                          6       3
cos(2)    2                        cos(1)    2
vector([- 4, - 2], [------, - -]), vector([- 4, - 1], [------, - -]),
6       3                          6       3
1    2                      cos(1)    2
vector([- 4, 0], [-, - -]), vector([- 4, 1], [------, - -]),
6    3                        6       3
cos(2)    2                      cos(3)    2
vector([- 4, 2], [------, - -]), vector([- 4, 3], [------, - -]),
6       3                        6       3
cos(4)    2                        cos(4)    1
vector([- 4, 4], [------, - -]), vector([- 3, - 4], [------, - -]),
6       3                          6       2
cos(3)    1                        cos(2)    1
vector([- 3, - 3], [------, - -]), vector([- 3, - 2], [------, - -]),
6       2                          6       2
cos(1)    1                      1    1
vector([- 3, - 1], [------, - -]), vector([- 3, 0], [-, - -]),
6       2                      6    2
cos(1)    1                      cos(2)    1
vector([- 3, 1], [------, - -]), vector([- 3, 2], [------, - -]),
6       2                        6       2
cos(3)    1                      cos(4)    1
vector([- 3, 3], [------, - -]), vector([- 3, 4], [------, - -]),
6       2                        6       2
cos(4)    1                        cos(3)    1
vector([- 2, - 4], [------, - -]), vector([- 2, - 3], [------, - -]),
6       3                          6       3
cos(2)    1                        cos(1)    1
vector([- 2, - 2], [------, - -]), vector([- 2, - 1], [------, - -]),
6       3                          6       3
1    1                      cos(1)    1
vector([- 2, 0], [-, - -]), vector([- 2, 1], [------, - -]),
6    3                        6       3
cos(2)    1                      cos(3)    1
vector([- 2, 2], [------, - -]), vector([- 2, 3], [------, - -]),
6       3                        6       3
cos(4)    1                        cos(4)    1
vector([- 2, 4], [------, - -]), vector([- 1, - 4], [------, - -]),
6       3                          6       6
cos(3)    1                        cos(2)    1
vector([- 1, - 3], [------, - -]), vector([- 1, - 2], [------, - -]),
6       6                          6       6
cos(1)    1                      1    1
vector([- 1, - 1], [------, - -]), vector([- 1, 0], [-, - -]),
6       6                      6    6
cos(1)    1                      cos(2)    1
vector([- 1, 1], [------, - -]), vector([- 1, 2], [------, - -]),
6       6                        6       6
cos(3)    1                      cos(4)    1
vector([- 1, 3], [------, - -]), vector([- 1, 4], [------, - -]),
6       6                        6       6
cos(4)                         cos(3)
vector([0, - 4], [------, 0]), vector([0, - 3], [------, 0]),
6                              6
cos(2)                         cos(1)
vector([0, - 2], [------, 0]), vector([0, - 1], [------, 0]),
6                              6
1                       cos(1)
vector([0, 0], [-, 0]), vector([0, 1], [------, 0]),
6                         6
cos(2)                       cos(3)
vector([0, 2], [------, 0]), vector([0, 3], [------, 0]),
6                            6
cos(4)                         cos(4)  1
vector([0, 4], [------, 0]), vector([1, - 4], [------, -]),
6                              6     6
cos(3)  1                      cos(2)  1
vector([1, - 3], [------, -]), vector([1, - 2], [------, -]),
6     6                        6     6
cos(1)  1                    1  1
vector([1, - 1], [------, -]), vector([1, 0], [-, -]),
6     6                    6  6
cos(1)  1                    cos(2)  1
vector([1, 1], [------, -]), vector([1, 2], [------, -]),
6     6                      6     6
cos(3)  1                    cos(4)  1
vector([1, 3], [------, -]), vector([1, 4], [------, -]),
6     6                      6     6
cos(4)  1                      cos(3)  1
vector([2, - 4], [------, -]), vector([2, - 3], [------, -]),
6     3                        6     3
cos(2)  1                      cos(1)  1
vector([2, - 2], [------, -]), vector([2, - 1], [------, -]),
6     3                        6     3
1  1                    cos(1)  1
vector([2, 0], [-, -]), vector([2, 1], [------, -]),
6  3                      6     3
cos(2)  1                    cos(3)  1
vector([2, 2], [------, -]), vector([2, 3], [------, -]),
6     3                      6     3
cos(4)  1                      cos(4)  1
vector([2, 4], [------, -]), vector([3, - 4], [------, -]),
6     3                        6     2
cos(3)  1                      cos(2)  1
vector([3, - 3], [------, -]), vector([3, - 2], [------, -]),
6     2                        6     2
cos(1)  1                    1  1
vector([3, - 1], [------, -]), vector([3, 0], [-, -]),
6     2                    6  2
cos(1)  1                    cos(2)  1
vector([3, 1], [------, -]), vector([3, 2], [------, -]),
6     2                      6     2
cos(3)  1                    cos(4)  1
vector([3, 3], [------, -]), vector([3, 4], [------, -]),
6     2                      6     2
cos(4)  2                      cos(3)  2
vector([4, - 4], [------, -]), vector([4, - 3], [------, -]),
6     3                        6     3
cos(2)  2                      cos(1)  2
vector([4, - 2], [------, -]), vector([4, - 1], [------, -]),
6     3                        6     3
1  2                    cos(1)  2
vector([4, 0], [-, -]), vector([4, 1], [------, -]),
6  3                      6     3
cos(2)  2                    cos(3)  2
vector([4, 2], [------, -]), vector([4, 3], [------, -]),
6     3                      6     3
cos(4)  2
vector([4, 4], [------, -])]
6     3
(%i6) apply(draw2d , append ([ color=blue], vect2 ));
(%o6) [gr2d(vector, vector, vector, vector, vector, vector, vector, vector,
vector, vector, vector, vector, vector, vector, vector, vector, vector,
vector, vector, vector, vector, vector, vector, vector, vector, vector,
vector, vector, vector, vector, vector, vector, vector, vector, vector,
vector, vector, vector, vector, vector, vector, vector, vector, vector,
vector, vector, vector, vector, vector, vector, vector, vector, vector,
vector, vector, vector, vector, vector, vector, vector, vector, vector,
vector, vector, vector, vector, vector, vector, vector, vector, vector,
vector, vector, vector, vector, vector, vector, vector, vector, vector,
vector)]
(%i7) ```
Run Example
```t1 : {{},{a},{a,b},{a,b,c}};
(%o1)                    {{}, {a}, {a, b}, {a, b, c}}
(%i2) t2 : {{},{e},{f},{d,e}};
(%o2)                       {{}, {d, e}, {e}, {f}}
(%i3) X1 : flatten(t1);
(%o3)                              {a, b, c}
(%i4) X2 : flatten(t1);
(%o4)                              {a, b, c}
(%i5) t12 : cartesian_product(t1,t2);
(%o5) {[{}, {}], [{}, {d, e}], [{}, {e}], [{}, {f}], [{a}, {}], [{a}, {d, e}],
[{a}, {e}], [{a}, {f}], [{a, b}, {}], [{a, b}, {d, e}], [{a, b}, {e}],
[{a, b}, {f}], [{a, b, c}, {}], [{a, b, c}, {d, e}], [{a, b, c}, {e}],
[{a, b, c}, {f}]}
(%i6) map(lambda([x],apply(cartesian_product,x)),t12);
(%o6) {{}, {[a, d], [a, e]}, {[a, d], [a, e], [b, d], [b, e]},
{[a, d], [a, e], [b, d], [b, e], [c, d], [c, e]}, {[a, e]}, {[a, e], [b, e]},
{[a, e], [b, e], [c, e]}, {[a, f]}, {[a, f], [b, f]}, {[a, f], [b, f], [c, f]}}
(%i7) ```
Run Example
```coord: setify(makelist(k,k,-2,2));
(%o1)                         {- 2, - 1, 0, 1, 2}
(%i2) points3d: listify(cartesian_product(coord ,coord ,coord));
(%o2) [[- 2, - 2, - 2], [- 2, - 2, - 1], [- 2, - 2, 0], [- 2, - 2, 1],
[- 2, - 2, 2], [- 2, - 1, - 2], [- 2, - 1, - 1], [- 2, - 1, 0], [- 2, - 1, 1],
[- 2, - 1, 2], [- 2, 0, - 2], [- 2, 0, - 1], [- 2, 0, 0], [- 2, 0, 1],
[- 2, 0, 2], [- 2, 1, - 2], [- 2, 1, - 1], [- 2, 1, 0], [- 2, 1, 1],
[- 2, 1, 2], [- 2, 2, - 2], [- 2, 2, - 1], [- 2, 2, 0], [- 2, 2, 1],
[- 2, 2, 2], [- 1, - 2, - 2], [- 1, - 2, - 1], [- 1, - 2, 0], [- 1, - 2, 1],
[- 1, - 2, 2], [- 1, - 1, - 2], [- 1, - 1, - 1], [- 1, - 1, 0], [- 1, - 1, 1],
[- 1, - 1, 2], [- 1, 0, - 2], [- 1, 0, - 1], [- 1, 0, 0], [- 1, 0, 1],
[- 1, 0, 2], [- 1, 1, - 2], [- 1, 1, - 1], [- 1, 1, 0], [- 1, 1, 1],
[- 1, 1, 2], [- 1, 2, - 2], [- 1, 2, - 1], [- 1, 2, 0], [- 1, 2, 1],
[- 1, 2, 2], [0, - 2, - 2], [0, - 2, - 1], [0, - 2, 0], [0, - 2, 1],
[0, - 2, 2], [0, - 1, - 2], [0, - 1, - 1], [0, - 1, 0], [0, - 1, 1],
[0, - 1, 2], [0, 0, - 2], [0, 0, - 1], [0, 0, 0], [0, 0, 1], [0, 0, 2],
[0, 1, - 2], [0, 1, - 1], [0, 1, 0], [0, 1, 1], [0, 1, 2], [0, 2, - 2],
[0, 2, - 1], [0, 2, 0], [0, 2, 1], [0, 2, 2], [1, - 2, - 2], [1, - 2, - 1],
[1, - 2, 0], [1, - 2, 1], [1, - 2, 2], [1, - 1, - 2], [1, - 1, - 1],
[1, - 1, 0], [1, - 1, 1], [1, - 1, 2], [1, 0, - 2], [1, 0, - 1], [1, 0, 0],
[1, 0, 1], [1, 0, 2], [1, 1, - 2], [1, 1, - 1], [1, 1, 0], [1, 1, 1],
[1, 1, 2], [1, 2, - 2], [1, 2, - 1], [1, 2, 0], [1, 2, 1], [1, 2, 2],
[2, - 2, - 2], [2, - 2, - 1], [2, - 2, 0], [2, - 2, 1], [2, - 2, 2],
[2, - 1, - 2], [2, - 1, - 1], [2, - 1, 0], [2, - 1, 1], [2, - 1, 2],
[2, 0, - 2], [2, 0, - 1], [2, 0, 0], [2, 0, 1], [2, 0, 2], [2, 1, - 2],
[2, 1, - 1], [2, 1, 0], [2, 1, 1], [2, 1, 2], [2, 2, - 2], [2, 2, - 1],
[2, 2, 0], [2, 2, 1], [2, 2, 2]]
(%i3) vf3d(x,y,z):=  vector([x,y,z],[z,x,y]/8);
[z, x, y]
(%o3)            vf3d(x, y, z) := vector([x, y, z], ---------)
8
(%i4) vect3: makelist(vf3d(k[1],k[2],k[3]),k,points3d);
1    1    1
(%o4) [vector([- 2, - 2, - 2], [- -, - -, - -]),
4    4    4
1    1    1
vector([- 2, - 2, - 1], [- -, - -, - -]),
8    4    4
1    1                           1    1    1
vector([- 2, - 2, 0], [0, - -, - -]), vector([- 2, - 2, 1], [-, - -, - -]),
4    4                           8    4    4
1    1    1
vector([- 2, - 2, 2], [-, - -, - -]), vector([- 2, - 1, - 2],
4    4    4
1    1    1                               1    1    1
[- -, - -, - -]), vector([- 2, - 1, - 1], [- -, - -, - -]),
4    4    8                               8    4    8
1    1                           1    1    1
vector([- 2, - 1, 0], [0, - -, - -]), vector([- 2, - 1, 1], [-, - -, - -]),
4    8                           8    4    8
1    1    1                             1    1
vector([- 2, - 1, 2], [-, - -, - -]), vector([- 2, 0, - 2], [- -, - -, 0]),
4    4    8                             4    4
1    1                                 1
vector([- 2, 0, - 1], [- -, - -, 0]), vector([- 2, 0, 0], [0, - -, 0]),
8    4                                 4
1    1                            1    1
vector([- 2, 0, 1], [-, - -, 0]), vector([- 2, 0, 2], [-, - -, 0]),
8    4                            4    4
1    1  1                             1    1  1
vector([- 2, 1, - 2], [- -, - -, -]), vector([- 2, 1, - 1], [- -, - -, -]),
4    4  8                             8    4  8
1  1                         1    1  1
vector([- 2, 1, 0], [0, - -, -]), vector([- 2, 1, 1], [-, - -, -]),
4  8                         8    4  8
1    1  1                             1    1  1
vector([- 2, 1, 2], [-, - -, -]), vector([- 2, 2, - 2], [- -, - -, -]),
4    4  8                             4    4  4
1    1  1                              1  1
vector([- 2, 2, - 1], [- -, - -, -]), vector([- 2, 2, 0], [0, - -, -]),
8    4  4                              4  4
1    1  1                         1    1  1
vector([- 2, 2, 1], [-, - -, -]), vector([- 2, 2, 2], [-, - -, -]),
8    4  4                         4    4  4
1    1    1
vector([- 1, - 2, - 2], [- -, - -, - -]),
4    8    4
1    1    1
vector([- 1, - 2, - 1], [- -, - -, - -]),
8    8    4
1    1                           1    1    1
vector([- 1, - 2, 0], [0, - -, - -]), vector([- 1, - 2, 1], [-, - -, - -]),
8    4                           8    8    4
1    1    1
vector([- 1, - 2, 2], [-, - -, - -]), vector([- 1, - 1, - 2],
4    8    4
1    1    1                               1    1    1
[- -, - -, - -]), vector([- 1, - 1, - 1], [- -, - -, - -]),
4    8    8                               8    8    8
1    1                           1    1    1
vector([- 1, - 1, 0], [0, - -, - -]), vector([- 1, - 1, 1], [-, - -, - -]),
8    8                           8    8    8
1    1    1                             1    1
vector([- 1, - 1, 2], [-, - -, - -]), vector([- 1, 0, - 2], [- -, - -, 0]),
4    8    8                             4    8
1    1                                 1
vector([- 1, 0, - 1], [- -, - -, 0]), vector([- 1, 0, 0], [0, - -, 0]),
8    8                                 8
1    1                            1    1
vector([- 1, 0, 1], [-, - -, 0]), vector([- 1, 0, 2], [-, - -, 0]),
8    8                            4    8
1    1  1                             1    1  1
vector([- 1, 1, - 2], [- -, - -, -]), vector([- 1, 1, - 1], [- -, - -, -]),
4    8  8                             8    8  8
1  1                         1    1  1
vector([- 1, 1, 0], [0, - -, -]), vector([- 1, 1, 1], [-, - -, -]),
8  8                         8    8  8
1    1  1                             1    1  1
vector([- 1, 1, 2], [-, - -, -]), vector([- 1, 2, - 2], [- -, - -, -]),
4    8  8                             4    8  4
1    1  1                              1  1
vector([- 1, 2, - 1], [- -, - -, -]), vector([- 1, 2, 0], [0, - -, -]),
8    8  4                              8  4
1    1  1                         1    1  1
vector([- 1, 2, 1], [-, - -, -]), vector([- 1, 2, 2], [-, - -, -]),
8    8  4                         4    8  4
1       1                             1       1
vector([0, - 2, - 2], [- -, 0, - -]), vector([0, - 2, - 1], [- -, 0, - -]),
4       4                             8       4
1                         1       1
vector([0, - 2, 0], [0, 0, - -]), vector([0, - 2, 1], [-, 0, - -]),
4                         8       4
1       1                             1       1
vector([0, - 2, 2], [-, 0, - -]), vector([0, - 1, - 2], [- -, 0, - -]),
4       4                             4       8
1       1                                 1
vector([0, - 1, - 1], [- -, 0, - -]), vector([0, - 1, 0], [0, 0, - -]),
8       8                                 8
1       1                         1       1
vector([0, - 1, 1], [-, 0, - -]), vector([0, - 1, 2], [-, 0, - -]),
8       8                         4       8
1                                 1
vector([0, 0, - 2], [- -, 0, 0]), vector([0, 0, - 1], [- -, 0, 0]),
4                                 8
1
vector([0, 0, 0], [0, 0, 0]), vector([0, 0, 1], [-, 0, 0]),
8
1                                 1     1
vector([0, 0, 2], [-, 0, 0]), vector([0, 1, - 2], [- -, 0, -]),
4                                 4     8
1     1                             1
vector([0, 1, - 1], [- -, 0, -]), vector([0, 1, 0], [0, 0, -]),
8     8                             8
1     1                       1     1
vector([0, 1, 1], [-, 0, -]), vector([0, 1, 2], [-, 0, -]),
8     8                       4     8
1     1                           1     1
vector([0, 2, - 2], [- -, 0, -]), vector([0, 2, - 1], [- -, 0, -]),
4     4                           8     4
1                       1     1
vector([0, 2, 0], [0, 0, -]), vector([0, 2, 1], [-, 0, -]),
4                       8     4
1     1                             1  1    1
vector([0, 2, 2], [-, 0, -]), vector([1, - 2, - 2], [- -, -, - -]),
4     4                             4  8    4
1  1    1                            1    1
vector([1, - 2, - 1], [- -, -, - -]), vector([1, - 2, 0], [0, -, - -]),
8  8    4                            8    4
1  1    1                         1  1    1
vector([1, - 2, 1], [-, -, - -]), vector([1, - 2, 2], [-, -, - -]),
8  8    4                         4  8    4
1  1    1                             1  1    1
vector([1, - 1, - 2], [- -, -, - -]), vector([1, - 1, - 1], [- -, -, - -]),
4  8    8                             8  8    8
1    1                         1  1    1
vector([1, - 1, 0], [0, -, - -]), vector([1, - 1, 1], [-, -, - -]),
8    8                         8  8    8
1  1    1                           1  1
vector([1, - 1, 2], [-, -, - -]), vector([1, 0, - 2], [- -, -, 0]),
4  8    8                           4  8
1  1                             1
vector([1, 0, - 1], [- -, -, 0]), vector([1, 0, 0], [0, -, 0]),
8  8                             8
1  1                          1  1
vector([1, 0, 1], [-, -, 0]), vector([1, 0, 2], [-, -, 0]),
8  8                          4  8
1  1  1                           1  1  1
vector([1, 1, - 2], [- -, -, -]), vector([1, 1, - 1], [- -, -, -]),
4  8  8                           8  8  8
1  1                       1  1  1
vector([1, 1, 0], [0, -, -]), vector([1, 1, 1], [-, -, -]),
8  8                       8  8  8
1  1  1                           1  1  1
vector([1, 1, 2], [-, -, -]), vector([1, 2, - 2], [- -, -, -]),
4  8  8                           4  8  4
1  1  1                          1  1
vector([1, 2, - 1], [- -, -, -]), vector([1, 2, 0], [0, -, -]),
8  8  4                          8  4
1  1  1                       1  1  1
vector([1, 2, 1], [-, -, -]), vector([1, 2, 2], [-, -, -]),
8  8  4                       4  8  4
1  1    1                             1  1    1
vector([2, - 2, - 2], [- -, -, - -]), vector([2, - 2, - 1], [- -, -, - -]),
4  4    4                             8  4    4
1    1                         1  1    1
vector([2, - 2, 0], [0, -, - -]), vector([2, - 2, 1], [-, -, - -]),
4    4                         8  4    4
1  1    1                             1  1    1
vector([2, - 2, 2], [-, -, - -]), vector([2, - 1, - 2], [- -, -, - -]),
4  4    4                             4  4    8
1  1    1                            1    1
vector([2, - 1, - 1], [- -, -, - -]), vector([2, - 1, 0], [0, -, - -]),
8  4    8                            4    8
1  1    1                         1  1    1
vector([2, - 1, 1], [-, -, - -]), vector([2, - 1, 2], [-, -, - -]),
8  4    8                         4  4    8
1  1                              1  1
vector([2, 0, - 2], [- -, -, 0]), vector([2, 0, - 1], [- -, -, 0]),
4  4                              8  4
1                          1  1
vector([2, 0, 0], [0, -, 0]), vector([2, 0, 1], [-, -, 0]),
4                          8  4
1  1                              1  1  1
vector([2, 0, 2], [-, -, 0]), vector([2, 1, - 2], [- -, -, -]),
4  4                              4  4  8
1  1  1                          1  1
vector([2, 1, - 1], [- -, -, -]), vector([2, 1, 0], [0, -, -]),
8  4  8                          4  8
1  1  1                       1  1  1
vector([2, 1, 1], [-, -, -]), vector([2, 1, 2], [-, -, -]),
8  4  8                       4  4  8
1  1  1                           1  1  1
vector([2, 2, - 2], [- -, -, -]), vector([2, 2, - 1], [- -, -, -]),
4  4  4                           8  4  4
1  1                       1  1  1
vector([2, 2, 0], [0, -, -]), vector([2, 2, 1], [-, -, -]),
4  4                       8  4  4
1  1  1
vector([2, 2, 2], [-, -, -])]
4  4  4
(%i5) apply(draw3d , append([color=blue], vect3));
1    1    1
(%o5) draw3d(color = blue, vector([- 2, - 2, - 2], [- -, - -, - -]),
4    4    4
1    1    1
vector([- 2, - 2, - 1], [- -, - -, - -]),
8    4    4
1    1                           1    1    1
vector([- 2, - 2, 0], [0, - -, - -]), vector([- 2, - 2, 1], [-, - -, - -]),
4    4                           8    4    4
1    1    1
vector([- 2, - 2, 2], [-, - -, - -]), vector([- 2, - 1, - 2],
4    4    4
1    1    1                               1    1    1
[- -, - -, - -]), vector([- 2, - 1, - 1], [- -, - -, - -]),
4    4    8                               8    4    8
1    1                           1    1    1
vector([- 2, - 1, 0], [0, - -, - -]), vector([- 2, - 1, 1], [-, - -, - -]),
4    8                           8    4    8
1    1    1                             1    1
vector([- 2, - 1, 2], [-, - -, - -]), vector([- 2, 0, - 2], [- -, - -, 0]),
4    4    8                             4    4
1    1                                 1
vector([- 2, 0, - 1], [- -, - -, 0]), vector([- 2, 0, 0], [0, - -, 0]),
8    4                                 4
1    1                            1    1
vector([- 2, 0, 1], [-, - -, 0]), vector([- 2, 0, 2], [-, - -, 0]),
8    4                            4    4
1    1  1                             1    1  1
vector([- 2, 1, - 2], [- -, - -, -]), vector([- 2, 1, - 1], [- -, - -, -]),
4    4  8                             8    4  8
1  1                         1    1  1
vector([- 2, 1, 0], [0, - -, -]), vector([- 2, 1, 1], [-, - -, -]),
4  8                         8    4  8
1    1  1                             1    1  1
vector([- 2, 1, 2], [-, - -, -]), vector([- 2, 2, - 2], [- -, - -, -]),
4    4  8                             4    4  4
1    1  1                              1  1
vector([- 2, 2, - 1], [- -, - -, -]), vector([- 2, 2, 0], [0, - -, -]),
8    4  4                              4  4
1    1  1                         1    1  1
vector([- 2, 2, 1], [-, - -, -]), vector([- 2, 2, 2], [-, - -, -]),
8    4  4                         4    4  4
1    1    1
vector([- 1, - 2, - 2], [- -, - -, - -]),
4    8    4
1    1    1
vector([- 1, - 2, - 1], [- -, - -, - -]),
8    8    4
1    1                           1    1    1
vector([- 1, - 2, 0], [0, - -, - -]), vector([- 1, - 2, 1], [-, - -, - -]),
8    4                           8    8    4
1    1    1
vector([- 1, - 2, 2], [-, - -, - -]), vector([- 1, - 1, - 2],
4    8    4
1    1    1                               1    1    1
[- -, - -, - -]), vector([- 1, - 1, - 1], [- -, - -, - -]),
4    8    8                               8    8    8
1    1                           1    1    1
vector([- 1, - 1, 0], [0, - -, - -]), vector([- 1, - 1, 1], [-, - -, - -]),
8    8                           8    8    8
1    1    1                             1    1
vector([- 1, - 1, 2], [-, - -, - -]), vector([- 1, 0, - 2], [- -, - -, 0]),
4    8    8                             4    8
1    1                                 1
vector([- 1, 0, - 1], [- -, - -, 0]), vector([- 1, 0, 0], [0, - -, 0]),
8    8                                 8
1    1                            1    1
vector([- 1, 0, 1], [-, - -, 0]), vector([- 1, 0, 2], [-, - -, 0]),
8    8                            4    8
1    1  1                             1    1  1
vector([- 1, 1, - 2], [- -, - -, -]), vector([- 1, 1, - 1], [- -, - -, -]),
4    8  8                             8    8  8
1  1                         1    1  1
vector([- 1, 1, 0], [0, - -, -]), vector([- 1, 1, 1], [-, - -, -]),
8  8                         8    8  8
1    1  1                             1    1  1
vector([- 1, 1, 2], [-, - -, -]), vector([- 1, 2, - 2], [- -, - -, -]),
4    8  8                             4    8  4
1    1  1                              1  1
vector([- 1, 2, - 1], [- -, - -, -]), vector([- 1, 2, 0], [0, - -, -]),
8    8  4                              8  4
1    1  1                         1    1  1
vector([- 1, 2, 1], [-, - -, -]), vector([- 1, 2, 2], [-, - -, -]),
8    8  4                         4    8  4
1       1                             1       1
vector([0, - 2, - 2], [- -, 0, - -]), vector([0, - 2, - 1], [- -, 0, - -]),
4       4                             8       4
1                         1       1
vector([0, - 2, 0], [0, 0, - -]), vector([0, - 2, 1], [-, 0, - -]),
4                         8       4
1       1                             1       1
vector([0, - 2, 2], [-, 0, - -]), vector([0, - 1, - 2], [- -, 0, - -]),
4       4                             4       8
1       1                                 1
vector([0, - 1, - 1], [- -, 0, - -]), vector([0, - 1, 0], [0, 0, - -]),
8       8                                 8
1       1                         1       1
vector([0, - 1, 1], [-, 0, - -]), vector([0, - 1, 2], [-, 0, - -]),
8       8                         4       8
1                                 1
vector([0, 0, - 2], [- -, 0, 0]), vector([0, 0, - 1], [- -, 0, 0]),
4                                 8
1
vector([0, 0, 0], [0, 0, 0]), vector([0, 0, 1], [-, 0, 0]),
8
1                                 1     1
vector([0, 0, 2], [-, 0, 0]), vector([0, 1, - 2], [- -, 0, -]),
4                                 4     8
1     1                             1
vector([0, 1, - 1], [- -, 0, -]), vector([0, 1, 0], [0, 0, -]),
8     8                             8
1     1                       1     1
vector([0, 1, 1], [-, 0, -]), vector([0, 1, 2], [-, 0, -]),
8     8                       4     8
1     1                           1     1
vector([0, 2, - 2], [- -, 0, -]), vector([0, 2, - 1], [- -, 0, -]),
4     4                           8     4
1                       1     1
vector([0, 2, 0], [0, 0, -]), vector([0, 2, 1], [-, 0, -]),
4                       8     4
1     1                             1  1    1
vector([0, 2, 2], [-, 0, -]), vector([1, - 2, - 2], [- -, -, - -]),
4     4                             4  8    4
1  1    1                            1    1
vector([1, - 2, - 1], [- -, -, - -]), vector([1, - 2, 0], [0, -, - -]),
8  8    4                            8    4
1  1    1                         1  1    1
vector([1, - 2, 1], [-, -, - -]), vector([1, - 2, 2], [-, -, - -]),
8  8    4                         4  8    4
1  1    1                             1  1    1
vector([1, - 1, - 2], [- -, -, - -]), vector([1, - 1, - 1], [- -, -, - -]),
4  8    8                             8  8    8
1    1                         1  1    1
vector([1, - 1, 0], [0, -, - -]), vector([1, - 1, 1], [-, -, - -]),
8    8                         8  8    8
1  1    1                           1  1
vector([1, - 1, 2], [-, -, - -]), vector([1, 0, - 2], [- -, -, 0]),
4  8    8                           4  8
1  1                             1
vector([1, 0, - 1], [- -, -, 0]), vector([1, 0, 0], [0, -, 0]),
8  8                             8
1  1                          1  1
vector([1, 0, 1], [-, -, 0]), vector([1, 0, 2], [-, -, 0]),
8  8                          4  8
1  1  1                           1  1  1
vector([1, 1, - 2], [- -, -, -]), vector([1, 1, - 1], [- -, -, -]),
4  8  8                           8  8  8
1  1                       1  1  1
vector([1, 1, 0], [0, -, -]), vector([1, 1, 1], [-, -, -]),
8  8                       8  8  8
1  1  1                           1  1  1
vector([1, 1, 2], [-, -, -]), vector([1, 2, - 2], [- -, -, -]),
4  8  8                           4  8  4
1  1  1                          1  1
vector([1, 2, - 1], [- -, -, -]), vector([1, 2, 0], [0, -, -]),
8  8  4                          8  4
1  1  1                       1  1  1
vector([1, 2, 1], [-, -, -]), vector([1, 2, 2], [-, -, -]),
8  8  4                       4  8  4
1  1    1                             1  1    1
vector([2, - 2, - 2], [- -, -, - -]), vector([2, - 2, - 1], [- -, -, - -]),
4  4    4                             8  4    4
1    1                         1  1    1
vector([2, - 2, 0], [0, -, - -]), vector([2, - 2, 1], [-, -, - -]),
4    4                         8  4    4
1  1    1                             1  1    1
vector([2, - 2, 2], [-, -, - -]), vector([2, - 1, - 2], [- -, -, - -]),
4  4    4                             4  4    8
1  1    1                            1    1
vector([2, - 1, - 1], [- -, -, - -]), vector([2, - 1, 0], [0, -, - -]),
8  4    8                            4    8
1  1    1                         1  1    1
vector([2, - 1, 1], [-, -, - -]), vector([2, - 1, 2], [-, -, - -]),
8  4    8                         4  4    8
1  1                              1  1
vector([2, 0, - 2], [- -, -, 0]), vector([2, 0, - 1], [- -, -, 0]),
4  4                              8  4
1                          1  1
vector([2, 0, 0], [0, -, 0]), vector([2, 0, 1], [-, -, 0]),
4                          8  4
1  1                              1  1  1
vector([2, 0, 2], [-, -, 0]), vector([2, 1, - 2], [- -, -, -]),
4  4                              4  4  8
1  1  1                          1  1
vector([2, 1, - 1], [- -, -, -]), vector([2, 1, 0], [0, -, -]),
8  4  8                          4  8
1  1  1                       1  1  1
vector([2, 1, 1], [-, -, -]), vector([2, 1, 2], [-, -, -]),
8  4  8                       4  4  8
1  1  1                           1  1  1
vector([2, 2, - 2], [- -, -, -]), vector([2, 2, - 1], [- -, -, -]),
4  4  4                           8  4  4
1  1                       1  1  1
vector([2, 2, 0], [0, -, -]), vector([2, 2, 1], [-, -, -]),
4  4                       8  4  4
1  1  1
vector([2, 2, 2], [-, -, -]))
4  4  4
(%i6) ```

### Related Help

Help for Cartesian_product