One of our teachers came across a strange bug that I cannot explain. When previewing or answering the question, entering 3sqrt(2) into the first input field shows a very strange interpretation of the input.
It looks as follows in TeX notation:
3\, if unknown then sconcat("\\left(",tex1(sqrt(2)),"\\right)") else (if atom(sqrt(2)) or is(length(args(a)) = 1) or safe_op(sqrt(2)) = "^" then tex1(sqrt(2)) else sconcat("\\left(",tex1(sqrt(2)),"\\right)"))
Or in MathML: (click)
```
````
The error persist, when entering 3*sqrt(2) for example.
But if you enter e.g. 3sqrt(x) the error goes away and you can see the 3\, \sqrt{x} TeX rendering properly.
It seems this buggy validation display has no effect on the answer being properly understood by STACK for grading etc., but the weird display can confuse students for obvious reasons.
If you want, I can send you the offending question as XML.
One of our teachers came across a strange bug that I cannot explain. When previewing or answering the question, entering
3sqrt(2)
into the first input field shows a very strange interpretation of the input.It looks as follows in TeX notation:
Or in MathML: (click)
``` ````The error persist, when entering
3*sqrt(2)
for example.But if you enter e.g.
3sqrt(x)
the error goes away and you can see the3\, \sqrt{x}
TeX rendering properly.It seems this buggy validation display has no effect on the answer being properly understood by STACK for grading etc., but the weird display can confuse students for obvious reasons.
If you want, I can send you the offending question as XML.
We are on Moodle
4.1
and STACK4.5.0
.