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:

Setdifference Calculator

Setdifference

Function: setdifference (<a>, <b>) Returns a set containing the elements in the set <a> that are not in the set <b>.

setdifference complains if either <a> or <b> is not a literal set.

Examples:

          (%i1) S_1 : {a, b, c, x, y, z};
          (%o1)                  {a, b, c, x, y, z}
          (%i2) S_2 : {aa, bb, c, x, y, zz};
          (%o2)                 {aa, bb, c, x, y, zz}
          (%i3) setdifference (S_1, S_2);
          (%o3)                       {a, b, z}
          (%i4) setdifference (S_2, S_1);
          (%o4)                     {aa, bb, zz}
          (%i5) setdifference (S_1, S_1);
          (%o5)                          {}
          (%i6) setdifference (S_1, {});
          (%o6)                  {a, b, c, x, y, z}
          (%i7) setdifference ({}, S_1);
          (%o7)                          {}

(%o1)                                true
(%i2) 

Setdifference Example

Related Examples

setdifference

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

setdifference

S_1 : {a, b, c, x, y,...

...

...

Calculate

setdifference

S_1 : {a, b, c, x, y,...

...

...

Calculate

setdifference-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

setdifference

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

setdifference

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

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

setdifference(A,B);

Calculate

setdifference-union

A:{1,3,5,6,7,8,9,10,1...

B:{2,4,6,7,8,9,10,11,...

C:{0,1,2,3,4,5,6,7,8,...

Calculate

setdifference

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

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

C: {b,a,3,4,8,13,27...

Calculate

setdifference-union

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

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

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

Calculate

setdifference-union

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

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

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

Calculate