Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Union Calculator

Union

Function: union (<a_1>, ..., <a_n>) Returns the union of the sets <a_1> through <a_n>.

union() (with no arguments) returns the empty set.

union complains if any argument is not a literal set.

Examples:

          (%i1) S_1 : {a, b, c + d, %e};
          (%o1)                   {%e, a, b, d + c}
          (%i2) S_2 : {%pi, %i, %e, c + d};
          (%o2)                 {%e, %i, %pi, d + c}
          (%i3) S_3 : {17, 29, 1729, %pi, %i};
          (%o3)                {17, 29, 1729, %i, %pi}
          (%i4) union ();
          (%o4)                          {}
          (%i5) union (S_1);
          (%o5)                   {%e, a, b, d + c}
          (%i6) union (S_1, S_2);
          (%o6)              {%e, %i, %pi, a, b, d + c}
          (%i7) union (S_1, S_2, S_3);
          (%o7)       {17, 29, 1729, %e, %i, %pi, a, b, d + c}
          (%i8) union ({}, S_1, S_2, S_3);
          (%o8)       {17, 29, 1729, %e, %i, %pi, a, b, d + c}

There are also some inexact matches for union. Try ?? union to see them.

(%o1)                                true
(%i2) 

Union Example

Related Examples

union

eq1:[1,2,3,4,5];

eq2:[5,6,7,8,9];

union(set(eq1),set(eq...

Calculate

union

(union({−4, 42, 59, 1...

Calculate

union

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

B:{4,5,6,7,8,9};

C:{1,3,5,7,2,4,6,8};

Calculate

union

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

B:{4,5};

union(A, B);

Calculate

union

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

B:{4,5,6,7,8,9};

C:{1,3,5,7,2,4,6,8};

Calculate

union

A : {1, 5, {1, 5},{ap...

B : {{1, 5, 10}};

union (A, B);

Calculate

union

A:{0,1,2,3,4,5,6};

B:{2,4,6,8,10};

C:{1,3,5,7,9,11,15};

Calculate

union

A:{2,4,6,8,10};

B:{0,1,2,3};

C:{-2,-1,0,3};

Calculate

union

A:{1,2,27,48,a};

B:{8,9,3,1,2,7,4,9};

C:{b,a,3,4,8,13,27,48};

Calculate

union

union({a,b,c},{c,d,e});

Calculate