Precedence in print statement

Issue #95 new
Matthew Thomas Collins created an issue

When printing a ufl form such as

import ufl
x = ufl.Constant(ufl.triangle)
y = ufl.Constant(ufl.triangle)
print(1./(x*y)

)

This gives the output

1.0 / w_0 * w_1

However as the brackets have disappeared which using standard precedence implies this should be interpreted as

(1.0 / w_0) * w_1

Comments (1)

  1. Log in to comment