Hey all!
I’m hoping someone can give me some advice. I’m trying to create a self-checking activity for students evaluating partial derivatives.
What I would like is for the student screen to look like this
And students would type in the partial derivatives to each spot and if they were correct they would see a little checkmark and if not they would see a sad face. I’ve done activities similar to this in the past but I’m running into the issue that the solutions would have two variables.
For this example the solution to fxx would be 3x^2+2xy^2
So I thought this code might work, but it did not:
#Table Values
a1=table1.cellContent(1,2)
a2=table1.cellContent(2,2)
a3=table1.cellContent(3,2)
a4=table1.cellContent(1,4)
a5=table1.cellContent(2,4)
a6=table1.cellContent(3,4)
eq1=parseEquation(this.cellContent(1,2)).differenceFunction(“x”,“y”)
checkf1=eq1.evaluateAt(1,1)=5 and eq1.evaluateAt(2,2)=28
cellSuffix(1,2):
when checkf1 “”
otherwise “”
My other issue is I need a way to tell the note to display the great job you got them all correct message?
I was thinking that a code like this but with all 6 check function recalls?
${result}"
result =
when table1.script.checkf1 and table1.script.checkf2 “Great Job! ”
when table1.submitted “\n\n\Incorrect. Go back and check each of your partial derivatives.”
otherwise “”
Any advice is much appreciated!!