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.

貢獻者指南