davidedc / Algebrite

Computer Algebra System in Javascript (Typescript)
http://algebrite.org
MIT License
968 stars 59 forks source link

Display order of polynomial monomials #173

Open chrisbansart opened 1 year ago

chrisbansart commented 1 year ago

Hi, I face an issue with polynom displays. When I run a polynom in Algebrite (it could be tested directly in the sandbox): e.g. 3x+4x^2+1 => it displays correctly in the standard order (monomials from the biggest degrees to the lowest) : 4x^2 + 3x + 1

But when I run a polynom with, at least, one decimal coefficient: e.g. 3.9x+4x^2+1 => it displays in the reverse order: 1 + 3.9 x + 4x^2

Any ideas ? Thanks, Chris