Ask Your Question

tedmos's profile - activity

2016-10-10 21:02:14 +0100 received badge  Famous Question (source)
2016-08-28 12:17:58 +0100 received badge  Notable Question (source)
2015-05-30 15:42:32 +0100 received badge  Popular Question (source)
2013-12-23 04:37:42 +0100 received badge  Student (source)
2013-12-22 15:41:45 +0100 commented answer solving a matrix equation modulo m

Ok thank you, with 6.0 everything works fine now!

2013-12-22 15:41:09 +0100 received badge  Supporter (source)
2013-12-22 11:48:04 +0100 commented answer solving a matrix equation modulo m

This is my version: 'Sage Version 5.8, Release Date: 2013-03-15'

2013-12-22 09:17:33 +0100 commented answer solving a matrix equation modulo m

Hello and thanks for the answer. If I try your example above I get the following error: TypeError: base ring must be an integral domain I get this error if and only if m is not prime (in this case m=15 is not prime). I tried your example with the free sage provided online at [sagemath](http://www.sagemath.org/) and there it works fine. So could it be, that my version is not up to date, although I downloaded it last week?

2013-12-22 09:16:30 +0100 answered a question solving a matrix equation modulo m

Hello and thanks for the answer. If I try your example above I get the following error:

TypeError: base ring must be an integral domain

I get this error if and only if m is not prime (in this case m=15 is not prime). I tried your example with the free sage provided online at sagemath and there it works fine. So could it be, that my version is not up to date, although I downloaded it last week?

2013-12-22 07:12:57 +0100 asked a question solving a matrix equation modulo m

Hello,

I am quite new to sage an have troubles with the following problem:

I'm given a matrix 'A' and a vector 'b' and a positiv interger 'm' (m does not have to be prime). 'A' is a matrix with more rows than collums, so it is not quadratic. I would like to find the solution 'x' of the equation: A*x = b (mod m).

I have tried to manage it with e.g.:

A.solve_right(Integers(m),p),

but this works only if m is prime. I also was able to solve my problem if I explicitly insert the equations like this:

gp('matsolvemod([1,2;1,3],6,[1,0]~,1)')

But I need something, where I just have to specify 'A' and 'b' (and of course m). Can somebody help me?

best regards