What is the most useful basefield for finite matrix groups?
Hi everyone, I am trying to write a notebook that does some elementary computations in a finite matrix group like conjugacy classes and character tables. It is meant to be used in cases where the group is realized explicitly as some subgroup of GL(3,R) or GL(2,R). My problem now is that if I want to implement rotations like
rotations=[]
for t in [1/3,2/3]:
rotations.append(matrix([[cos(2*pi*t),-sin(2*pi*t)],[sin(2*pi*t),cos(2*pi*t)]]))
the base ring will be the symbolic ring SR because there is a sqrt(2) in some denominators. If I then try to compute the characters via
gens=rotations
G2=MatrixGroup(gens)
G2.character_table()
I will get an error message. My assumption is that because of the base ring SR, Sage doesn't realize that this is in fact a finite group. What would a suitable base field be to make this computation possible?
Thanks in advance.
AA or QQbar or UniversalCyclotomicField or CyclotomicField or NumberField or ...
Thank you for the quick reply. Working over numberfields actually makes it possible to enter the matrices in a somewhat useful form. The main problem is not solved, however. Sage still doesn't realize that this group is in fact finite.
This question about finiteness kind of turned up already here: https://ask.sagemath.org/question/38403/check-if-a-finitely-generated-matrix-group-is-finite-works-with-qq-and-not-with-cc/ (Check if a finiteley generated matrix group is finite). There it is pointed out that it wouldn't work over floating point fields like CC but the case of number fields is not really addressed.