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
198 stars 118 forks source link

Simplify function bug #975

Closed zaript closed 1 year ago

zaript commented 1 year ago

The simplification rule in some cases concatenates substituted values, removing multiplication sign "*".

Example question.

The point of interest is +{c}*{power_c}*x^({power_c-1}) in variable df1. The multiplication between {c} and {power_c} is removed, leading to incorrect expression.

EDIT: I could reproduce it in a simpler case now. Bug is triggered when using "basic" simplification rules, rather than "all".