See the assignment turn-in page (last modified on 11 September 2001) for instructions on turning in your assignment.
An algebraic equation set is a sequence of one or more lines; each line contains a single algebraic equation. An algebraic equation has the form
=
expression
and an expression can have any of the following forms:
a
, b
, c
, . . ., x
, y
, z
.
0
, 1
, . . ., 8
, 9
. Decimal integers may
be arbitrarily long.
operation is one of the binary operators '+
', '-
', '*
', or
'/
'; white space may appear on either side of the operator. precedence and
associativity of the operators are the same as they are for C++.
Any equation set not following this syntax is syntactically incorrect.
Each input equation set is independent of the other equation sets.
Output equation sets should be as simple as possible. An equation set is simple when none of the equations in the set contain possible operations. An operation is possible if both of the operation's operands are known. For example, the equation set
x = 3
is simple because it contains no operations. The equation set
y = x + 100000000000000000000000000000000000000000000000000000000000000000
is simple because none of the remaining operations are possible (x
being
an unknown). The equation set
x = 4 - y y = x + 100000000000000000000000000000000000000000000000000000000000000000
is not simple because the +
is a possible operator; the equation set can
be further simplified to
x = -49999999999999999999999999999999999999999999999999999999999999998 y = 50000000000000000000000000000000000000000000000000000000000000002
This page last modified on 11 October 2001.