Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There is something wrong with the character you input for "minus".

Compare:

p(x) = x^3 – 3*x^2 + (x - 1)

p(x) = x^3 - 3*x^2 + (x - 1)

At least on my computer, the first thing looks slightly longer, and is probably a dash or hyphen character of some kind. I don't have access to your computer, so I don't know what your keyboard looks like, but my guess is you are using something that looks like minus but isn't. Indeed,

sage: str('–')
'\xe2\x80\x93'