sage: Integers(45)['t'] Univariate Polynomial Ring in t over Ring of integers modulo 45
I don't think we have linear algebra over general non-integral-domains, but sage: R = GF(5)['x'] sage: M = random_matrix(R, 4, 4); b = random_vector(R, 4); x = M \ b sage: M*x (4*x^2 + x + 4, x^2 + 2*x + 4, 4*x^2 + 2*x + 3, x^2 + 2*x + 4) sage: b (4*x^2 + x + 4, x^2 + 2*x + 4, 4*x^2 + 2*x + 3, x^2 + 2*x + 4) On Wed, Oct 23, 2013 at 11:36 AM, Juan Grados <[email protected]> wrote: > thanks, and if the system coefficients are polynomials over finite field? Is > there PolynomialModRing(p(x))? > > > 2013/10/23 P Purkayastha <[email protected]> >> >> Exists in Sage: >> >> sage: I6 = IntegerModRing(6) >> sage: M = random_matrix(I6, 4, 4) >> sage: v = random_vector(I6, 4) >> sage: M \ v >> (4, 0, 2, 1) >> >> >> On 10/23/2013 09:11 PM, Juan Grados wrote: >>> >>> Exists in python, any instruction to solve a linear system equations >>> module n (integer). In mathematica for example If exists >>> >>> <http://mathematica.stackexchange.com/questions/31696/solving-a-system-of-linear-equations-modulo-n>. >>> >>> thanks >>> >>> -- >>> --------------------------------------------------------------------- >>> MSc.Juan del Carmen Grados Vásquez >>> Laboratório Nacional de Computação Científica >>> Tel: +55 24 2233-6260 <tel:%2B55%2024%202233-6260> >>> (http://www.lncc.br/) >>> http://juaninf.blogspot.com >>> --------------------------------------------------------------------- >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "sage-support" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at http://groups.google.com/group/sage-support. >>> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "sage-support" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/sage-support. >> For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- > --------------------------------------------------------------------- > MSc. Juan del Carmen Grados Vásquez > > Laboratório Nacional de Computação Científica > Tel: +55 24 2233-6260 > (http://www.lncc.br/) > http://juaninf.blogspot.com > --------------------------------------------------------------------- > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
