You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Certain mathematical expression questions fail correct answers. For example, a simple question asking for $(-6)^n$ fails that answer. See here.
To reproduce:
create a new question, with a new part, "Mathematical Expression".
In correct answer, enter "(-6)^n".
Run the question and enter (-6)^n in the box then submit.
Note that the "Testing" tab gives a few failures in the marking algorithm that might give a hint: either the algorithm is looking for a rhs component that doesn't exist, or for a ruleTree function/component that doesn't exist.
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. It turned out there was a bug in the logic for exponentiating a decimal value, which is used when you take an integer to a non-integer power.
The exponentiation operation for ComplexDecimals was incorrect for
integer powers - I'd only checked it for the square root.
This commit adds a range of unit tests checking that `decimal` and
`number` versions of the same exponentiation return the same result.
see #1012
Certain mathematical expression questions fail correct answers. For example, a simple question asking for$(-6)^n$ fails that answer. See here.
To reproduce:
Note that the "Testing" tab gives a few failures in the marking algorithm that might give a hint: either the algorithm is looking for a
rhs
component that doesn't exist, or for aruleTree
function/component that doesn't exist.The text was updated successfully, but these errors were encountered: