In order to use the command [$mathexp:some_math_expression$] you should install the bc mathematical utility (version 1.06 or newer) written by Philip A. Nelson ((philnelson AT acm.org)).
some_math_expression
(philnelson AT acm.org)