CommPy
CommPy copied to clipboard
Simple example of cyctomic cosets
trafficstars
Hello,
-could you give a small example on how it works to print cyclotomic cosets? i try with following code, but it either takes infinitely long, or it does return some strange class ( namely [<commpy.channelcoding.gfields.GF at 0x74913aeaeb70>]).
The code is simply: " x = 2 m = 4 x = GF(x, m) print(x.cosets()) "
- The documentation for the galois fields seems to have a typo that confuses me. Sometimes the parameters "x,m" are mentioned, sometimes it is called "n, m". Is it correct that x=n?
I use Python 3.12, and installed on ubuntu 24 with pip a few days ago.
I would appreciate any help or discussion. Best regards