Sponsored links: Algebra eBooks ### The Maxima on-line user's manual

Algebra Calculator

#### Search: #### Elementp

Function: elementp (<x>, <a>) Returns `true` if and only if <x> is a member of the set <a>. `elementp` complains if <a> is not a literal set.

Examples:

```          (%i1) elementp (sin(1), {sin(1), sin(2), sin(3)});
(%o1)                         true
(%i2) elementp (sin(1), {cos(1), cos(2), cos(3)});
(%o2)                         false```

```(%o1)                                true
(%i2) ```

### Related Examples

##### elementp

elementp(2,{%r});

Calculate

##### elementp-sin

elementp (sin(1), {si...

Calculate

##### elementp

elementp({2},{%r1});

Calculate

##### elementp

elementp(1,{-1,2});

Calculate

##### elementp

a=-1;

elementp(a,{-1,2});

Calculate

? elementp;

Calculate

##### elementp-sin

elementp (sin(1), {si...

Calculate

##### elementp-sin

elementp (1, {(1), si...

Calculate

##### elementp

elementp(2,{%r1});

Calculate

##### elementp

elementp({}, {{}});

Calculate 