Hi,
In this activity on slide 3, solving inequalities is working well when, inside the “gok1” graph component, the teacher inputs the variables “symbol” (for the symbol of the final answer), “answer” (the final answer) and “ineq.” (the text of the inequality).
However, on slide 2, I was trying to allow students to enter those 3 variables themselves and then show all the steps to solving. I ran into an issue on slide 2, in the component gok1, with this line:
symbol= when isDefined((numericValue(gok5.labelLatex(d_1)))) ${gok5.labelLatex(d_1)} otherwise ${symbolforpremadeproblems}
answer= when isDefined((numericValue(gok5.labelLatex(d_2)))) ${gok5.labelLatex(d_2)} otherwise ${answerforpremadeproblems}
ineq=when isDefined(gok5.labelLatex(“d_3”)) "{gok5.labelLatex("d_3")}" when isDefined(gok5.labelText("d_3")) "{gok5.labelText(“d_3”)}"otherwise “${ineqforpremadeproblems}”
THE ISSUE IS BELOW:
check1a=simpleFunction(“\abs({left1}-({right1}))”,“${v}”).evaluateAt(answer)<0.001
where it is saying that the “answer” variable must be a number.