Ask Your Question
1

How to find solution to the following matrix

asked 2017-03-23 00:42:12 -0600

Raghu gravatar image

updated 2017-03-23 08:52:47 -0600

kcrisman gravatar image

[ a a + 1] [ a^2 a^2 + a]

Following is the code which tries to find solution to the 2X2 matrix A in field GF(2^4,'a'). I am trying to find solution(vector) x such that Ax=O; where O is a zero vector. The rank of A is 1 and still I am getting trivial solution(zero vector). How to find non-trivial solution of the above matrix

sage: F.<a>=GF(2^4);
sage: A=Matrix(GF(2^4,'a'),[[a,a^4],[a^2,a^5]]);
sage: b=vector(GF(2^4,'a'),2)
sage: A.rank()
sage: A.solve_right(b)
(0, 0)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-03-23 10:03:55 -0600

tmonteil gravatar image

updated 2017-03-23 10:05:20 -0600

The solve_right method only gives you one solution (and is mainly used for affine equations, where b is nonzero). The set of solutions is the (right) kernel of your matrix:

sage: A.right_kernel()
Vector space of degree 2 and dimension 1 over Finite Field in a of size 2^4
Basis matrix:
[                1 a^3 + a^2 + a + 1]
sage: A.right_kernel().basis()[0]
(1, a^3 + a^2 + a + 1)
sage: A*A.right_kernel().basis()[0]
(0, 0)
edit flag offensive delete link more

Comments

That's a pretty good explaination.

kaassama gravatar imagekaassama ( 2017-03-30 10:31:43 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-03-23 00:42:12 -0600

Seen: 81 times

Last updated: Mar 30