Inequalities

In Corca, inequalities are treated as relation operators. They behave as structural elements that connect expressions. They are not embedded inside subexpressions such as fractions or powers.

Creating inequalities

You can create inequalities by typing standard symbols. Type x>3 to get x>3 x is greater than 3. The inequality operator is inserted automatically.

You can also type common aliases, like x=/2 to get x≠2 x is not equal to 2.

Corca converts the typed alias into the correct mathematical symbol.

Common inequality operators

The following operators are available by default.

Operator

Symbol

Example

Less than

<

x<5 x is less than 5

Greater than

>

x>5 x is greater than 5

Less than or equal

≤ is less than or equal to

x≤5 x is less than or equal to 5

Greater than or equal

≥ is greater than or equal to

x≥5 x is greater than or equal to 5

Not equal

≠ is not equal to

x≠0 x is not equal to 0

Equal

= equals

x=3 x equals 3

Solving an inequality

An inequality can be solved the same way as an equation. Write the inequality on one line, then ask for the solution on the next.

Corca returns the answer as an interval rather than a single value. Solving x+5<10 x plus 5 is less than 10 gives (−∞,5) the interval from negative infinity to 5 not including 5, with a round bracket where the bound is excluded and a square bracket where it is included.

Solutions that aren't a single interval are returned as written: a union of intervals, or a combination joined by ∨ where the result holds in more than one region.

The ∈ trigger

Typing x ∈ on the line below an inequality shows its solution set.

x+5<10 x plus 5 is less than 10 then x ∈ on the next line

(−∞,5) the interval from negative infinity to 5 not including 5

x2>4 x squared is greater than 4 then x ∈ on the next line

(−∞,−2)∪(2,∞) the interval from negative infinity to negative 2 not including negative 2 union the interval from 2 to infinity not including 2

This reads the way the solution would be written by hand, and keeps the inequality and its answer on separate lines.

Restricting a solve to a domain

You can constrain a solve by declaring a domain for the variable. Adding x∈[0,10] x is a member of open bracket 0 comma 10 close bracket restricts the result to that interval, and anything outside it is dropped from the answer.

A declared domain also applies when the expression is plotted, so a graph is drawn only over the range you allowed.

Chained relations

A chained relation such as a<b≤c a is less than b is less than or equal to c is not solved. Split it into separate inequalities on their own lines.

Visual distinction

Relation operators are visually distinct from arithmetic operators. They use a separate styling to highlight logical relationships.

This makes complex expressions easier to read.

Inserting inequalities from the symbol palette

You can insert inequality symbols from the right sidebar. Steps:

  1. Open the Symbol Palette

  2. Select a relation symbol

  3. Click to insert

The symbol appears at the cursor position.

Previous: Math Structures

Next: Units