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
You can also type common aliases, like x=/2 to get
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 | < | |
Greater than | > | |
Less than or equal | ||
Greater than or equal | ||
Not equal | ||
Equal |
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
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.
| |
|
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
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
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:
Open the Symbol Palette
Select a relation symbol
Click to insert
The symbol appears at the cursor position.
Previous: Math Structures | Next: Units |