Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printing of polynomial over FF #21409

Open
sylee957 opened this issue May 1, 2021 · 0 comments
Open

Printing of polynomial over FF #21409

sylee957 opened this issue May 1, 2021 · 0 comments
Labels

Comments

@sylee957
Copy link
Member

sylee957 commented May 1, 2021

from sympy import *

R, x = ring('x', FF(7))
print(x**2 + 4*x + 3)

It prints out in unreadable form as

x**2 + 4 mod 7*x + 3 mod 7
@sylee957 sylee957 added the polys label May 1, 2021
skirpichev added a commit to skirpichev/diofant that referenced this issue Feb 27, 2022
…rder)

There are alternatives:
https://en.wikipedia.org/wiki/Modular_arithmetic#Integers_modulo_n
https://reference.wolfram.com/language/FiniteFields/tutorial/FiniteFields.html
(with subscripts etc).  Neither looks good with the DejaVu fonts (but
might be used for the latex() printing).

The current look resembles the SageMath, e.g.:
https://doc.sagemath.org/html/en/tutorial/tour_polynomial.html

Closes sympy/sympy#21409
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant