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

Argument type-aware printing for Symbolic terms #659

Open
GeorgeR227 opened this issue Oct 15, 2024 · 0 comments · May be fixed by #660
Open

Argument type-aware printing for Symbolic terms #659

GeorgeR227 opened this issue Oct 15, 2024 · 0 comments · May be fixed by #660

Comments

@GeorgeR227
Copy link

I would want to improve the appearance of my symbolic expression outputs by:

  • Removing any module scoping
  • Adding some useful input type information to otherwise generic functions

Could we edit the symbolic term printing to allow for these?

Currently the output looks like,

julia> Δ(x) + 2Δ(y)
2Catlab.Theories.Δ(y) + Catlab.Theories.Δ(x)

where this function scope isn't even correct in this case.

I would want it to appear more like,

julia> Δ(x) + 2Δ(y)
2Δ₁(y) + Δ₁(x)

where the labeling on the functions come from the types of the input variables. I'd much prefer this latter output since I feel it is much cleaner to read and more informative.

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

Successfully merging a pull request may close this issue.

1 participant