ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 04 Sep 2011 05:56:41 +02004-Digit Rounding Arithmetic:System of Equationshttps://ask.sagemath.org/question/8305/4-digit-rounding-arithmeticsystem-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.130*x + 6.990*y == 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. Mathstudent2010Sun, 04 Sep 2011 05:56:41 +0200https://ask.sagemath.org/question/8305/