Display of SScaledOperator containing SAddOperator
bug
When playing around with making linear combinations of operators I've run into some confusing output.
```
@op A; @op B
C = 2*(A+B)
```
outputs to the REPL
> 2A+B
After investigating the object C, I can see that the new operator is correct 'under the hood,' it is just improperly displayed. It would be good to see parenthesis on the output, my first guess would be this is every time there is a SScaledOperator where the obj field contains an SAddOperator.
关闭于 2025-05-11 1 条评论