Equations
Date: 2020-10-07 18:10:00

Up | Next | Prev | PrevTail | Tail

### 3.4 Equations

Equations are a particular type of expression with the syntax

⟨expression⟩=⟨expression⟩.

In addition to their role as boolean expressions, they can also be used as arguments to several operators (e.g., SOLVE), and can be returned as values.

Under normal circumstances, the right-hand-side of the equation is evaluated but not the left-hand-side. This also applies to any substitutions made by the SUB operator. If both sides are to be evaluated, the switch EVALLHSEQP should be turned on.

To facilitate the handling of equations, two selectors, LHS and RHS, which return the left- and right-hand sides of an equation respectively, are provided. For example,

lhs(a+b=c) -> a+b
and
rhs(a+b=c) -> c.

Up | Next | Prev | PrevTail | Front