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 [stackoverflow](https://stackoverflow.com/questions/67440834/how-to-use-sagemath-on-python)
I want to use this in Python
k = GF(2)
R. = k[]
k.extension(x^1000 + x^5 + x^4 + x^3 + 1, 'a')
The python code
from sage.all import *
F = GF(2)
R. = k[]
K = F.extension(x^4 + x + 1, 'a')
print(K)
the `R. = k[]` fails...
Is there a way to do this in python?
My final aim is finding the multiplicative inverse of an element using python with the sagemath import.
↧