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:

Intersection Calculator

Intersection

Function: intersection (<a_1>, ..., <a_n>) Returns a set containing the elements that are common to the sets <a_1> through <a_n>.

intersection complains if any argument is not a literal set.

Examples:

          (%i1) S_1 : {a, b, c, d};
          (%o1)                     {a, b, c, d}
          (%i2) S_2 : {d, e, f, g};
          (%o2)                     {d, e, f, g}
          (%i3) S_3 : {c, d, e, f};
          (%o3)                     {c, d, e, f}
          (%i4) S_4 : {u, v, w};
          (%o4)                       {u, v, w}
          (%i5) intersection (S_1, S_2);
          (%o5)                          {d}
          (%i6) intersection (S_2, S_3);
          (%o6)                       {d, e, f}
          (%i7) intersection (S_1, S_2, S_3);
          (%o7)                          {d}
          (%i8) intersection (S_1, S_2, S_3, S_4);
          (%o8)                          {}

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

(%o1)                                true
(%i2) 

Intersection Example

Related Examples

intersection-setdifference-union

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

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

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

Calculate

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

intersection

S_1 : {3, 6, {}, {2},...

S_2 : {1, 7, {{2}}, ...

intersection (S_1, S...

Calculate

intersection

A:{1,2,3};

B:{2};

intersection(A,B);

Calculate

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

intersection-setdifference-union

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

B:{3,4,5,56,7,8,9,0,5...

C:{h,j,u,gh,vg,tr,d,x...

Calculate

intersection-setdifference-union

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

B:{1,3,5,7,8,9};

C:{2,4,6,7,8,9,10};

Calculate

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

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

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