I would like students to type an expression into a maths box (collecting like terms) such as 13a+13b, and be able to check they have entered the correct expression.
I thought if I subsituted values into the expression and checked their expression gives the correct answer it would work.
I’ve been using the above method to check whether students have expanded brackets correctly. However when I use the code below in a note box that asks the question it displays 5x^3(5x+1), I want it to display the cubed as a superscript. How would I do this?
content: “{message} {feedback}”
message = "Expand content: “{message} {feedback}”
message = “Expand 5x^3(5x+1)”
feedback = when ans4.submitted and ans4.script.check4=1 “\n\n\n✅Good work ! !”
when ans4.submitted “\n\n\n❌Wrong answer. Please try again.”
otherwise “”
"
feedback = when ans4.submitted and ans4.script.check4=1 “\n\n\n✅Good work ! !”
when ans4.submitted “\n\n\n❌Wrong answer. Please try again.”
otherwise “”