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
202 stars 117 forks source link

rowvector not recognised as a JME function. #269

Closed BillFoster closed 11 years ago

BillFoster commented 11 years ago

See statement in http://numbas.mas.ncl.ac.uk/question/220/test-me/ Although rowvector(1,2,3) is advertised as giving matrix([1,2,3]) in the JME function reference, this does not happen.

christianp commented 11 years ago

You didn't put it in braces, so it wasn't evaluated.

BillFoster commented 11 years ago

I am somewhat confused by the difference between matrix([1,2]) which does not need braces to evaluate and rowvector([1,2]) which does. Is not rowvector(list) defined to be matrix(list)?

christianp commented 11 years ago

There's a special case in the jme display code to render matrix(list), which is really a function call, as a matrix. I can add one for rowvector too.

BillFoster commented 11 years ago

Yes that would make sense and consistent as vector(something) does not need braces to render