josdejong/mathjs

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

オープン

#3,351 opened on 2025/01/16

 (5 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (1,314 件のフォーク)batch import
bughelp wanted

Repository metrics

Stars
 (15,065 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

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());

コントリビューターガイド