jfeist / QuantumAlgebra.jl

Quantum operator algebra in Julia
MIT License
60 stars 10 forks source link

Prettyprint powers of parameters #4

Closed arnelg closed 3 years ago

arnelg commented 3 years ago

This is a feature request to prettyprint powers of parameters and operators, e.g.

x = param(:x)
x * x

would display as $x^2$ instead of $x x$.

jfeist commented 3 years ago

Done (in the full_rewrite branch)! It was actually quite straightforward.