How would Diophantus write that?

Conversion

This applicationA A) Requires Javascript and a MathML-aware browser. below let's you convert a polynomial of standard notation into the notation used in the MSS of Diophantus' works. The polynomial has to be of degree 6 or less and only use the variable x. A simple example polynomial is 18-13x^2 -5x+7 -x +47x^3. Note, that terms don't have to be in order and you can have multiple terms of the same degree. The input is checked to some extent, but - as usual - garbage in, garbage out.

What to convert: Result

To use the result, select it and do View Selection Source or similar. Be sure to get everything within and including the <math>-element.