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:

Cardinality Calculator

Cardinality

Function: cardinality (<a>) Returns the number of distinct elements of the set <a>.

cardinality ignores redundant elements even when simplification is disabled.

Examples:

          (%i1) cardinality ({});
          (%o1)                           0
          (%i2) cardinality ({a, a, b, c});
          (%o2)                           3
          (%i3) simp : false;
          (%o3)                         false
          (%i4) cardinality ({a, a, b, c});
          (%o4)                           3

(%o1)                                true
(%i2) 

Cardinality Example

Related Examples

cardinality

cardinality ({ {}, a,...

Calculate

cardinality

cardinality ({1,2,3,4...

Calculate

cardinality

cardinality ({});

cardinality ({{1,2}});

Calculate

cardinality

cardinality ({});

cardinality ({a, b, ...

Calculate

cardinality-union

cardinality (union({a...

Calculate

cardinality

cardinality ({0,{20,p...

Calculate

cardinality-intersect-union

intersect ({1,2,3,4,5...

cardinality ({a, a, ...

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

Calculate

cardinality-false-simp

cardinality ({1,2,3,4...

cardinality ({a, a, ...

simp : false;

Calculate

cardinality-false-simp

cardinality ({1, 2, 3...

cardinality ({a, a, ...

simp : false;

Calculate