Skip to content

Rationalize takes too much time #3250

@Divyesh-Shah-17

Description

@Divyesh-Shah-17

Describe the bug
The rationalize function is experiencing significant performance issues, causing noticeable slowness. In some cases, this slowness leads to the browser crashing.

To Reproduce
I encountered this issue with a different example, but I found a similar problem in the documentation with the following equation:
math.rationalize('x/(1-x)/(x-2)/(x-3)/(x-4) + 2x/ ( (1-2x)/(2-3x) )/ ((3-4x)/(4-5x) )')

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions