josdejong / josdejong/mathjs

Expression rationalization gets stuck or takes too long (it worked in V9.5.1)

Open
#3,351 5 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
JavaScript
Stars
15.1k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Recently, I updated Math.js from version 9.5.1 to the latest version, and an expression rationalization that worked before doesn't work anymore. (see **To Reproduce**)

**To Reproduce**

```typescript
import * as mathjs from 'mathjs';

const aa = mathjs.parse("6285.67^5/(s+6285.67)^5");
const bb = mathjs.rationalize(aa, {}, false); // It gets stuck here

console.log(bb.toString());
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.