Game Development Reference
In-Depth Information
number that generates the additive inverse of
4. To reach this goal, you mul-
tiply
y ¼
1
2
by 4. Your activity in this respect takes the following form:
1
2
y ðÞ¼
ðÞ
4
2
4
y ¼
2
4
y ¼
The result is an equation that eliminates the
y
variable if you add it to the first
equation in the system of equations. Here is the operation that accomplishes
this task:
4
x
4
y ¼
1
4y
¼
2
4x
¼
1
The result of the operation is an equation that isolates
x
. You can then multiply
this equation by
4
to arrive at the value of
x
. Here is the multiplication and the
result:
1
4
1
4
4
ðÞ¼
1
1
4
x ¼
Now you know the values of both
x
and
y
. The value of
x
is
4
, and the value of
y
is
2
.
To test the correctness of your calculations, you can substitute the values of
x
and
y
into the equations of the original system. Here is the substitution for the first
equation:
1
4
ð
4
Þ
1
2
¼
1
1
2
¼
1
ð
4
Þ
1
¼
1