numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
200 stars 117 forks source link

Error on displaying z1+1*z2 for complex numbers z1 and z2 #208

Closed BillFoster closed 11 years ago

BillFoster commented 12 years ago

See http://tallaght.ncl.ac.uk/question/325/testcx/

We see that, for example, 1+i +1*(-2+2i) is displayed in the gapfill as 1+i-2-2i. For some reason the 2i is displayed as -2i

BillFoster commented 12 years ago

Still getting the same display problem in http://tallaght.ncl.ac.uk/numbas-previews/45183d34-4ed2-4c4d-8885-a8b3b79bb22c/index.html

christianp commented 12 years ago

Ah! The hack I made to fix the SCORM manifest problem is stopping git from updating the servers. Hang on a bit...

christianp commented 12 years ago

Should be OK now.

BillFoster commented 12 years ago

Got this on running testcx Compilation Error

Compilation failed. (code 1)

STDERR

local variable 'all' referenced before assignment Traceback (most recent call last): File "/srv/numbas/dist/bin/numbas.py", line 286, in makeExam(options) File "/srv/numbas/dist/bin/numbas.py", line 163, in makeExam options.xmls = xml2js(options) File "/srv/numbas/dist/bin/xml2js.py", line 50, in xml2js """ % (str(extensionfiles),all, encode(options.examXML)) UnboundLocalError: local variable 'all' referenced before assignment STDOUT

christianp commented 12 years ago

Whoops again! Should definitely be working now.

BillFoster commented 12 years ago

Freezes on loading

BillFoster commented 12 years ago

Still getting the same display problem on running

http://tallaght.ncl.ac.uk/question/325/testcx/

as in the first comment.

christianp commented 11 years ago

It seems to be working for me now. Can you check?

BillFoster commented 11 years ago

Still the same problem, with s=1 in testcx http://tallaght.ncl.ac.uk/question/325/testcx/

(s had been changed to s=-1 which works OK, but not s=1)