IDIAMath / idiamath.github.io

1 stars 0 forks source link

STACK Answer test no input filter functionality #24

Open BlackBlueGreens opened 2 years ago

BlackBlueGreens commented 2 years ago

here is the question: https://github.com/IDIAMath/idiamath.github.io/tree/master/docs/XML

The problem: if the answer is [[1,2], [5,6]] I made it possible for the user to write [[5,6], [1,2]] and get the correct answer, which is good. but when it comes to writing [[1,3], [5,6]] then STACK will naturally mark the number 3 in red color (all others in regular black color) because there should be 2 there. But if I write [[5,6], [1,3]], then all numbers will be highlighted in red whether [5,6] is completely correct.

Stack answer test is responsible for highlighting in red the wrong parts of the answer, so an easy solution would be to add this filter method in STACK, there is no logical reason as to why there is NO Answer test in stack that would make it such that this answer [[1,2],[4,5]] is equivalent to [[4,5],[1,2]].

jonasjul commented 2 years ago

I think you need a workaround and assess the student's answer another way. Maybe splitting the students answer into two stack variables, ie [1,2] and [5,6] and checking them individually in the response tree

BlackBlueGreens commented 2 years ago

I already have two input's one for local min and another for local max. I failed to mention, a function can have any number of local min or local max points it does not have to be 2.

jonasjul commented 2 years ago

If the function can have any number of local max/mins - grading the students answer can get tricky. If we knew the function had say exactly 2 local minima, we can could have a response tree with two nodes that checked for the two minimas. For variable number of critical points, i don't think it is possible with a variable length response tree. A solution could be to give points for all minima/maxima, some points for at least one correct min/max and no points for no correct points. Check out attached xml or the question in my questionbank at the testserver for an example.

questions-jtc-Question#1 part 2 local minmax (Jonas edit)-20220726-1503.zip

BlackBlueGreens commented 2 years ago

Although it does not solve the problem described in the issue, it is a good workaround in this case.

BlackBlueGreens commented 2 years ago

.