Home / Maths for AI / Symbols / Sums, products and sets

Element of

Say it: "is in", "belongs to"

What it means

x∈Ax \in A means xx is a member of the set AA. ∉\notin means "is not in".

Example

3∈{1,2,3},5∉{1,2,3}3 \in \{1, 2, 3\}, \quad 5 \notin \{1, 2, 3\}

3 is one of the members; 5 is not.

In code

A = {1, 2, 3}
print(3 in A, 5 in A)

Output

True False

Where it appears in machine learning

x∈Rdx \in \mathbb{R}^d says "x is a vector of d real numbers": the most common sentence in ML papers.

Related symbols

Learn it properly in the free lesson Reading ML Maths, with practice questions that check your answers.