Open
Description
Description
When computing A \div B, if A = B, it will be simplified to 1 during the canonicalization procedure. However, this introduce some edge cases dealing with NaN / infinity. If A and B are NaN / infinity and the value isn't ready till evaluation, A \div B should not return 1. For example, tan(90) / tan(90) should not return 1.
Steps to Reproduce
ce.box(["Divide", ["Tan", pi/2], ["Tan", pi/2]]).evaluate().print();
Actual Result
1
Expected Result
NaN or throw an error.
Environment
ComputeEngine: 0.27.0