Up | Next | Prev | PrevTail | Tail |
Equations are a particular type of expression with the syntax
=
\(\langle \)expression\(\rangle \).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 |