04-28-2021, 08:25 PM

(04-26-2021 03:21 PM)cyrille de brébisson Wrote: [ -> ]Here is the change log.

Code:

`polynomial wizard improvements`

Say, that's much better. It's simple, clean, and efficient. The automatic solving in either direction is perfect. The graph visual is a nice touch.

There are a few easily fixed tweaks to look at, one mathematical and the rest are aesthetic.

[attachment=9424]

For the displayed equation, any complex coefficients need to be surrounded by parentheses or else you get incorrect order of operations. For instance,

coefficients [2+3*i,4,5,6,0] displays:

2+3*i*X^4+...

but it needs to be

(2+3*i)*X^4+...

Also for polynomials with complex coefficients, the graph should probably just be left blank rather than trying to draw the axes without a graph to go with it.

When displaying the equation, using lower-case, superscripts, implied multiplication, and subtraction would make it much easier to read.

x⁶-2x⁵+3x⁴-4x³+5x²-6x+7

vs

X^6+-2*X^5+3*X^4+-4*X^3+5*X^2+-6*X+7

Finally, I don't know if it is possible, but is there a way that the 2d matrix editor could be limited to a single line? I can just picture a student expanding the entry into a matrix. When you do this and enter values, the Poly field produces an appropriate error message, but entering a matrix in the Roots field produces a meaningless polynomial.