josdejong/mathjs

Rationalize giving error on 1/(x^-2)

Open

#1,724 创建于 2020年1月27日

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

描述

Running math.rationalize('1/(x^-2)') gives the error Cannot read property '1' of undefined.

However, running math.rationalize('1/(x^-1)') gives the result x as you'd expect.

I'm using mathjs 6.5.0. Haven't tested other versions.

贡献者指南