numbas/Numbas — Issue #135: JME displays, E and arrays
Author: BillFoster
Created: 2012-02-16 12:30:51+00:00
State: open

This particular problem arises in writing an expressions such as {a}E[X]+{b}E[Y] where {a} and {b} are variables possibly taking 0, 1 or negative values. E[X] etc is the standard way of writing expectation of a random variable.
So for display purposes it is natural to use \simplify[std]{{a}E[X]+{b}E[Y]} - but E[X] is taken to be asking for a value of an array in jme and even if you relax notation and use E(X), E is taken to be e=2.71.... One could use 'E[X]', but then the display is at variance with the latex display.
What can be done?