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:

Disjoin Calculator

Disjoin

Function: disjoin (<x>, <a>) Returns the set <a> without the member <x>. If <x> is not a member of <a>, return <a> unchanged.

a : set(a,b,c);
b: powerset(a);
c:disjoin({},b);
c:disjoin(a,c);
c;
	integer_partitions(c);

disjoin complains if <a> is not a literal set.

disjoin(<x>, <a>), delete(<x>, <a>), and setdifference(<a>, set(<x>)) are all equivalent. Of these, disjoin is generally faster than the others.

Examples:

          (%i1) disjoin (a, {a, b, c, d});
          (%o1)                       {b, c, d}
          (%i2) disjoin (a + b, {5, z, a + b, %pi});
          (%o2)                      {5, %pi, z}
          (%i3) disjoin (a - b, {5, z, a + b, %pi});
          (%o3)                  {5, %pi, b + a, z}

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

(%o1)                                true
(%i2) 

Disjoin Example

Related Examples

disjoin-powerset

a : set(a,b,c);

b: powerset(a);

c:disjoin({},b);

Calculate

disjoin-powerset

a : set(a,b,c);

b: powerset(a);

c:disjoin({},b);

Calculate