Comment by klx for There is a minor issue in your code:F = GF(2) R.<x>...
This should be the code. You have forgotten the `**` instead of `^` from sage.all import * F = GF(2) R = F['x']; (x,) = R._first_ngens(1) K = F.extension(x**4 + x + 1, 'a') print(K) So, the preparse is...
View ArticleComment by John Palmieri for There is a minor issue in your code:F = GF(2)...
In principle, `import_statements(GF)` will tell you what you need to import in order for `GF` to work...
View ArticleComment by John Palmieri for There is a minor issue in your code:F = GF(2)...
`from sage.all import GF` is slightly better, but not ideal.
View ArticleAnswer by John Palmieri for Yes, I want to the reverse, use the SageMath in...
There is a minor issue in your code: F = GF(2) R. = k[] Presumably `F` should be `k` or vice versa. The major issue with using this in Python is that `R. = k[]` is not allowable Python syntax. Sage...
View ArticleUsing SageMath Finite Field Extension on Python.
Yes, I want to the reverse, use the SageMath in Python. I've seen this on [ask.sagemath](https://ask.sagemath.org/question/39742/make-pycharm-recognise-the-sage-python-interpreter/) and...
View Article