Solve@x + y 7, yD
88y ® 7 - x<<
Solve @x y == 4, yD
::y ® >>
4
x
20
10
-10 -5 5 10
-10
solutions = Solve@
8x + y == 7,
x y == 4<,
8x, y<
D
20
10
-10 -5 5 10
-10
p0025.n05.Mathematica.nb 3
The above Rules (such as x® and y®) need to be parsed to extract the values.
/. is the "Replace All" Operator expr /. rules
Clear @x, yD;
9george, george2 , y, z=
4 p0025.n05.Mathematica.nb
Solution 1:
set1 = solutions@@1DD
:x ® K7 - 33 O, y ® K7 + 33 O>
1 1
2 2
x1 = x . set1
K7 - 33 O
1
2
N@x1D
0.627719
y1 = y . set1
K7 + 33 O
1
2
N@y1D
6.37228
K7 - 33 O + K7 + 33 O
1 2 1 2
4 4
N@solution1D
41.
p0025.n05.Mathematica.nb 5
Solution 2:
set2 = solutions@@2DD
:x ® K7 + 33 O, y ® K7 - 33 O>
1 1
2 2
x2 = x . set2
K7 + 33 O
1
2
N@x2D
6.37228
y2 = y . set2
K7 - 33 O
1
2
N@y2D
0.627719
K7 - 33 O + K7 + 33 O
1 2 1 2
4 4
N@solution2D
41.