numbas / editor

An editor for the Numbas e-learning system.
http://numbas.mathcentre.ac.uk
Apache License 2.0
59 stars 62 forks source link

Gap fill rendering of i*pi #164

Closed anthonyyoud closed 9 years ago

anthonyyoud commented 11 years ago

If a mathematical expression gap-fill has the answer i*pi, then the pretty-print next to the answer box in the editor correctly shows this as i\times\pi, but when revealing the correct answer within an exam, the answer box shows pii as does the pretty-print. In addition, an answer of i*pi entered into the gap is marked wrong.

This is in contrast to any other constant multiplying pi, e.g. 2*pi, 3*pi, etc., all behave as you would expect.

christianp commented 11 years ago

Can you make a minimal example question?

anthonyyoud commented 11 years ago

http://numbas.mas.ncl.ac.uk/numbas-previews/question-234-pii-problem/

christianp commented 9 years ago

This doesn't seem to be a problem any more.