josdejong/mathjs

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

Open

#1,724 opened on 2020年1月27日

GitHub で見る
 (7 comments) (0 reactions) (0 assignees)JavaScript (13,832 stars) (1,298 forks)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.

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