josdejong/mathjs

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

Open

#3,351 创建于 2025年1月16日

在 GitHub 查看
 (5 评论) (0 反应) (0 负责人)JavaScript (13,832 star) (1,298 fork)batch import
bughelp wanted

描述

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

贡献者指南

Expression rationalization gets stuck or takes too long (it worked in V9.5.1) · josdejong/mathjs#3351 | Good First Issue