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

Improve printing of certain expressions (e.g. omit trivial coefficients, avoid redundant parenthesis etc.) #47

Closed
fingolfin opened this issue Mar 5, 2024 · 0 comments
Labels
printing Printing needs to be improved

Comments

@fingolfin
Copy link
Member

Currently we have things like this:

(1) * exp(2π𝑖(2//(q - 1)*i*k))
(q) * exp(2π𝑖(2//(q - 1)*i*k))

which really should be rendered as

exp(2π𝑖(2//(q - 1)*i*k))
q * exp(2π𝑖(2//(q - 1)*i*k))

We can try to do that manually. Alternatively, perhaps consider using show_via_expressify (from AbstractAlgebra) to improve some of the printing systematically (it was designed for just this kind of problem).

@SoongNoonien SoongNoonien added the printing Printing needs to be improved label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
printing Printing needs to be improved
Projects
None yet
Development

No branches or pull requests

2 participants