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:

Symmdifference Calculator

Symmdifference

Function: symmdifference (<a_1>, ..., <a_n>) Returns the symmetric difference of sets <a_1>, ..., <a_n>. Given two arguments, symmdifference ( <a>, <b>) is the same as union ( setdifference ( <a>, <b>), setdifference(<b>, <a>)).

s_1 : {a, b, c};
 s_2 : {1, b, c};
 s_3 : {a, b, z};
 symmdifference ();
 symmdifference (s_1);
 symmdifference (s_1, s_2);
 symmdifference (s_1, s_2, s_3);
 symmdifference ({}, s_1, s_2, s_3);

symmdifference complains if any argument is not a literal set.

Examples:

          (%i1) S_1 : {a, b, c};
          (%o1)                       {a, b, c}
          (%i2) S_2 : {1, b, c};
          (%o2)                       {1, b, c}
          (%i3) S_3 : {a, b, z};
          (%o3)                       {a, b, z}
          (%i4) symmdifference ();
          (%o4)                          {}
          (%i5) symmdifference (S_1);
          (%o5)                       {a, b, c}
          (%i6) symmdifference (S_1, S_2);
          (%o6)                        {1, a}
          (%i7) symmdifference (S_1, S_2, S_3);
          (%o7)                        {1, b, z}
          (%i8) symmdifference ({}, S_1, S_2, S_3);
          (%o8)                        {1,b, z}

(%o1)                                true
(%i2) 

Symmdifference Example

Related Examples

symmdifference

S_1 : {a, b, c};

S_2 : {1, b, c};

symmdifference ();

Calculate

symmdifference

s_1 : {a, b, c};

s_2 : {1, b, c};

s_3 : {a, b, z};

Calculate

symmdifference

S_1 : {9, 8, 7, 6, 5,...

S_2 : {98765432100, ...

symmdifference ();

Calculate

symmdifference

S_1 : {a, b, c};

S_2 : {1, b, c};

S_3 : {a, b, z};

Calculate

symmdifference

s_1 : {a, b, c};

s_2 : {1, b, c};

s_3 : {a, b, z};

Calculate

symmdifference

? symmdifference;

Calculate

symmdifference

? symmdifference;

Calculate

symmdifference

S_1 : {a, b, c};

S_2 : {1, b, c};

S_3 : {a, b, z};

Calculate

symmdifference

S_1 : {a, b, c};

S_2 : {1, b, c};

symmdifference ();

Calculate

symmdifference

S_1 : {a, b, c};

S_2 : {1, b, c};

S_3 : {a, b, z};

Calculate