I’m just wondering how can I draw a polynomial like that X^2+2*X^4+…
in efficient way and make it look like a real one. I mean powers is up-script and so.
I’m just wondering how can I draw a polynomial like that X^2+2*X^4+… in efficient
Share
If you have an environment with a good Unicode font, you could relatively easily create your own polynomial
toString(). Unicode has all Arabic numerals defined as superscript, most of them in the Superscripts and Subscripts block:Thus, constructing x⁻⁴² (x^-42) would be possible by printing
U+0078 U+207B U+2074 U+00B2.Notice that the font you use to print this must have these characters defined.