\lesseqgtr

The \lesseqgtr symbol is used in mathematical expressions to denote a relation where a value is less than, equal to, or greater than another value. It is a composite relation that encompasses three possible comparisons between two values.

Examples

Indicates that x is less than, equal to, or greater than y.

x \lesseqgtr y

Compares the squares of a and b, indicating the relation could be less than, equal to, or greater than.

a^2 \lesseqgtr b^2

Compares two fractions, showing that the first fraction is less than, equal to, or greater than the second.

\frac{m}{n} \lesseqgtr \frac{p}{q}