Skip to content

print (2x) (x + 2) as 2x (x + 2) #72

Description

@evykassirer

print (2x) (x + 2) as 2x (x + 2)

I don't think 2x needs parens - it's already seen as a unit imo - and I think it's like another 'being aware of coefficients' thing and that the brain really does parse it differently

You noted that for this change we'd want to make sure we can maintain the invariant that parse(mathStr) == parse(print(parse(mathStr)))

(this isn't super high priority for me since it doesn't come up that much)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions