4-Digit Rounding Arithmetic:System of Equations
I am given this system of equations:
1.130x - 6.990y = 14.20 1.013x - 6.099y = 14.22
In sage I input sage: y = var("y") sage: solve ([1.130x + 6.990y == 14.20, ... etc ], x,y ) it spits out 4264/63, 1684/189 for x,y I now input sage: round((4264.0/63.0), 4) --> for x and same thing for y, using 1684.0 / 189.0. Giving me 8.9101, yet this answer seems to be wrong. My question is where can I found out how to do 4 digit rounding arithmetic using sage? or Am I doing something wrong with the code.