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.Mon, 05 Apr 2021 06:09:26 +0200How to convert linear system to matrix formhttps://ask.sagemath.org/question/56499/how-to-convert-linear-system-to-matrix-form/Hi, I am new to SageMath, need help on convert a linear system into matrix form using SageMath, e.g.
> 3 x + 2 y = 16
>
> 7 x + y = 19fahadktkMon, 05 Apr 2021 06:09:26 +0200https://ask.sagemath.org/question/56499/vector equation solvehttps://ask.sagemath.org/question/48532/vector-equation-solve/How to solve this?:
F = vector([cos(alpha),sin(alpha),z])
G = vector([z,cos(alpha),sin(alpha)])
A = vector([0,0,0])
solve(F-G == A)
Answer must be:
[cos(asin(cos(alpha))),
sin(asin(cos(alpha))),
sin(alpha)]dimonbavlyMon, 28 Oct 2019 10:39:17 +0100https://ask.sagemath.org/question/48532/solving matrix over GF(2)https://ask.sagemath.org/question/41575/solving-matrix-over-gf2/ A = matrix(GF(2), 8, 8, [])
b = vector(GF(2), [0, 1, 1, 0, 1, 0, 1, 1])
y = vector(GF(2), [0, 0, 0, 0, 1, 0, 1, 1])
x = vector(GF(2), [1, 0, 0, 0, 0, 0, 0, 0])
If the matrix $A$ is unkown, we have $Ax+b = y$.
How can we solve the matrix $A$?
omggggggFri, 16 Mar 2018 02:06:28 +0100https://ask.sagemath.org/question/41575/solving a matrix equation modulo mhttps://ask.sagemath.org/question/10852/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 regardstedmosSun, 22 Dec 2013 07:12:57 +0100https://ask.sagemath.org/question/10852/