basis of hyperplane
Hallo
I am new to sage and have this problem.
Given a hyperplane Hu⊂GF(2n+1) define by x|−>a8+a
How do I determine the basis of Hu over GF(2)?
Regards
Hallo
I am new to sage and have this problem.
Given a hyperplane Hu⊂GF(2n+1) define by x|−>a8+a
How do I determine the basis of Hu over GF(2)?
Regards
I do not understand how the constant map x↦a8+a defines a hyperplane, but if you want to find a basis of the orthogonal hyperplane of the vector a8+a, where a is "the" generator of K=GF(2n+1) viewed as a vector space over F=GF(2), you can:
sage: n = 6
sage: K = GF(2^(n+1),'a') ; K
Finite Field in a of size 2^7
sage: a = K.gen()
sage: F = K.base() ; F
Finite Field of size 2
sage: V = K.vector_space() ; V
Vector space of dimension 7 over Finite Field of size 2
sage: v = V(a^8 + a) ; v
(0, 0, 1, 0, 0, 0, 0)
sage: m = matrix(v) ; m
[0 0 1 0 0 0 0]
sage: m.right_kernel().basis()
[
(1, 0, 0, 0, 0, 0, 0),
(0, 1, 0, 0, 0, 0, 0),
(0, 0, 0, 1, 0, 0, 0),
(0, 0, 0, 0, 1, 0, 0),
(0, 0, 0, 0, 0, 1, 0),
(0, 0, 0, 0, 0, 0, 1)
]
Well, `S.basis_matrix().transpose()` defines an isomorphism between GF(2n) to S, so you can start from this an make compositions with other matrices.
Asked: 11 years ago
Seen: 1,765 times
Last updated: Jul 20 '13