Is there a way to mark a latex input {-1, -3, 1, 3} as correct? Order of numbers does not matter and can be different.
I think using this notation isnât particularly supported. Latex matching is really the only way to check it and youâd need to check all 24 possible combinations. Wish I had a better answer. I think this is where many users wish we had some string manipulation capabilities.
Okay, I guess I canât do that. If the latex input is 3 ordered pairs separated by a comma, example (1,2), (3,4), (5,6). Is there a way to parse out each of the ordered pairs. I do not want a table input.
I donât think so, unless thereâs something in pattern matching Iâm not aware of. If rawExpression were still around you could fudge a list of points, but I donât think thereâs a way now.
Do you think countNumberUsage would work here? You should be able to check for one of each number and then four numbers total.
Thank you so much for your responses. Would you be able to help me with this activity? I need help with the âhintâ button on slide 7. I want the hint to appear after students select discrete or continuous. It is not appearing. If I include it as the first âwhenâ statement in the note, error messages for domain and range do not appear. Not sure what to do.
Just move the when
condition for the hint higher up the list - ie. make sure when hint2.pressCount>0 and mc5.submitted and mc5.script.ans
appears before when mc5.submitted and mc5.script.ans
.
Another alternative would be to have the hint as a separate note, thatâs hidden:
until hint2.pressCount>0.
I tried that, but the domain and range error checks donât appear.
If you set the when
condition after the domain and range checks but before the mc5.submitted and mc5.script.ans
condition then the domain and range checks will show, but then the hint wonât show until you âunsubmitâ the answers.
Ultimately it is going to stop at the first âtrueâ condition and execute that, so the order needs to be very precise and probably not ever going to behave perfectly as you expect. Maybe in this case, the alternative I suggested - having the hint as a separate note that hides/unhides accordingly - would be the more flexible approach.
Thank you, I will add more note components.
This wonât quite work though because countNumberUsage wonât distinguish between positive and negative, so {1,3,1,3} would also be accepted.