\lessgtr

The \lessgtr symbol is used to denote a relationship where one quantity is less than or greater than another, often used in mathematical expressions to indicate inequality or comparison between two values.

Examples

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

x \lessgtr y

Comparison of squares of a and b, showing that one is less than or greater than the other.

a^2 \lessgtr b^2

Comparison of two fractions, indicating one is less than or greater than the other.

\frac{1}{n} \lessgtr \frac{1}{m}