You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The clever use of associativity to discard parens in _expression_to_string interacts badly with the pi-multiple pretty-printing in _check_for_pi, resulting in inequivalent serializations like these:
In : print(Program("RX(%theta/(2*pi)) 0"))
Out: RX(%theta/2*pi) 0
The text was updated successfully, but these errors were encountered:
notmgsk
changed the title
Pretty-printed pi-multiples are not properly parenthesized
Pretty-printed pi-products are not properly parenthesized
Oct 24, 2019
The clever use of associativity to discard parens in
_expression_to_string
interacts badly with the pi-multiple pretty-printing in_check_for_pi
, resulting in inequivalent serializations like these:The text was updated successfully, but these errors were encountered: