Re: [sage-support] solving equation question --- rounding error ?

2011-01-19 Thread tvn
The problem is rounding error. Over the rationals: sage: A = matrix(3, 3, [QQ(a) for a in [1, 0.106, 1.212, 3.8759765625, 0.04801171875, 3.972, 3.0625, 0.09325, 3.249]]) sage: A [ 1 53/500 303/250] [ 3969/1024 12291/256000 993/250] [ 49/16 373/4000

Re: [sage-support] solving equation question --- rounding error ?

2011-01-18 Thread Eckhard Kosin
Hi tvn, Am Montag, den 17.01.2011, 14:22 -0800 schrieb tvn: I try to solve for 3 variables x y z with 3 equations as below , I am expecting something like z = r1, x = -r1, y = -2*r1 but instead get x = y = z = 0 (which trivially valid though not expected). Is this because the numbers

Re: [sage-support] solving equation question --- rounding error ?

2011-01-18 Thread tvn
On Tuesday, January 18, 2011 10:19:58 AM UTC-7, einek wrote: Hi tvn, Am Montag, den 17.01.2011, 14:22 -0800 schrieb tvn: I try to solve for 3 variables x y z with 3 equations as below , I am expecting something like z = r1, x = -r1, y = -2*r1 but instead get x = y = z = 0 (which

Re: [sage-support] solving equation question --- rounding error ?

2011-01-18 Thread Robert Bradshaw
On Tuesday, January 18, 2011 10:19:58 AM UTC-7, einek wrote: Hi tvn, Am Montag, den 17.01.2011, 14:22 -0800 schrieb tvn: I try to solve for 3 variables x y z with 3 equations as below  , I am expecting something like  z = r1, x = -r1, y = -2*r1  but instead get x = y = z = 0 (which

[sage-support] solving equation question --- rounding error ?

2011-01-17 Thread tvn
I try to solve for 3 variables x y z with 3 equations as below , I am expecting something like z = r1, x = -r1, y = -2*r1 but instead get x = y = z = 0 (which trivially valid though not expected). Is this because the numbers used too complex (equation 2) and have some rounding errors