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

Optional case-sensitivity for names in JME #824

Closed christianp closed 3 years ago

christianp commented 3 years ago

Variable and function names in JME are case-insensitive, for historical reasons.

Conventional mathematical notation is case-sensitive. It should be possible to make JME notation case-sensitive. A good motivating example from one of our physics course is the expression t/T, where T is a constant and t is a variable representing time.

In order to achieve this, the whole JME system and the built-in marking algorithms should work in case-sensitive mode, so a question author could switch this on without making any other changes.

Ideally case-sensitivity would be a property of the JME scope, but things like findvars and parsing (#677) don't take a scope at the moment, so that would be a bigger change.