I built this activity to be self-checking, but am having an issue on slide 8 titled “#122c”
The answer is 36!/33! but if the students type that into the math input box, it marks it wrong. If they put in 36(35)(34) it is correct, even though, its the same thing. Please help, it is linked below.
Add this to your condition. It’s probably the scale of the values of the factorials that are leading to something in the way it’s calculated behind the scenes causing the issue:
or simpleFunction(`${this.latex}`).evaluateAt(0) = simpleFunction(`\frac{36!}{33!}`).evaluateAt(0)
Thanks! Unfortunately, that didn’t fix the problem, unless I put it in incorrectly. I can just tell students to use the actual calculator and just put in the answer.
The problem is with large number round off. We see here how the actual result is calculated in Desmos:
So rather than writing correct: input8.numericValue = 42840
you could replace with the follow: check = simpleFunction("\abs(a-b)",“a”,“b”) correct: check.evaluateAt(input8.numericValue,42840) < 0.01
That is for the following reason: You calculate “correct” in the input8 script but you separately calculate the “Great Job” based on another value comparison in the button script. Change the code in your button script and you’ll be on your way.
Didn’t see the button. I made a variable “check” in input8, then used input8.script.check in the note instead of re-checking by repeating code. You can also use it in the button if needed.