maths / moodle-qtype_stack

Stack question type for Moodle
GNU General Public License v3.0
142 stars 149 forks source link

Imaginary number i together with fraction causes problems with validation #1176

Closed bgailer closed 7 months ago

bgailer commented 7 months ago

Hello,

in one of our questions, we recently noticed a strange behavior with the validation when the input contains a fraction multiplied with the imaginary unit. For instance, something like %i*pi/3 works fine but (%pi/3)*%i or 1/2*%i does not. Below I included screenshots of the validation output from one of our questions on complex numbers.

imagnumbers_working imagnumbers_notworking

bgailer commented 7 months ago

This only seems to be the problem for this specific question, as other questions in our moodle do not show this when inputting something like (%pi/3)*%i. Here is the question that causes this issue: quiz-Komplexe Zahlen – Entwicklung-U2_A2 Rechenoperationen Zusatz-20240426-1608.txt

sangwinc commented 7 months ago

Yes, sorry about that - the problem has already been fixed.