Skip to content

Canonicalization over simplifies division #227

Open
@allenOrangeXu

Description

@allenOrangeXu

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions