Skip to content

print in polyform: spacing #24

@RobinHankin

Description

@RobinHankin

Printing in polyform is a bit cluttered:

library("weyl")
options(polyform = TRUE)
rweyl(dim=2)
#> A member of the Weyl algebra:
#> +3*y*dx^2*dy +2*x*y*dy +x^2*dx
rweyl(dim=5)
#> A member of the Weyl algebra:
#> +3*x1^2*x2^2*x3*x5^2*d1*d2^2*d3^2*d4^2 +2*x1*x4^2*d1*d2*d3*d5
#> +x1*x2^2*x3*x4*d3^2*d4^2*d5^2

It would be better to have spaces round the "+"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions