I am trying to have a table that checks if it is right when students type in an ordered pair. i’m super stuck even after reading lots of different posts. I greatly appreciate any help!
https://teacher.desmos.com/activitybuilder/custom/6022e1c959755a450255f2aa
You’ll need to check LaTeX content instead of numeric value. Try this in your table1 CL:
chk1 =table1.cellContent(1,2)= `\left(-2,-1\right)`
chk2 =table1.cellContent(2,2)= `\left(-2,0\right)`
cellContent(1,3): when chk1 "✅" OTHERWISE "N"
cellContent(2,3): when chk2 "✅" OTHERWISE "N"
correct: chk1 and chk2
1 Like
Your computational alternative is:
P1=parseOrderedPair(table1.cellContent(1,2))
P2=parseOrderedPair(table1.cellContent(2,2))
chk1= P1.x=-2 and P1.y=-1
chk2= P2.x=-2 and P2.y=0
#With shorter inputs, I prefer cellSuffix instead of a third column
cellSuffix(1,2): when chk1 "✅" otherwise "❌"
cellSuffix(2,2): when chk2 "✅" otherwise "❌"
2 Likes