I want to have a screen checking for the attached exercise:
so, for (a), I’d ask students to input the “would be upper bound”, and want to check that they chose one that will work.
So, for example, if u is that “would be upper bound”, it’ll need to see that u=sup(A)+1 is wrong, while u=(sup(A)+sup(B))/2 is right. If I chose values for the supremum to check against, I risk having an answer marked correct, dispite it being in absolutes (+1 and not the average). I don’t want to mark only the average as correct, as I’d like to actually evaluate each answer on it’s merit.
Any idea how to check? Is it even possible?
I thought maybe defining circularly sup(B)=(u+sup(A))/2 just to make sure that the expression depends on both supremum (if defined incorrct, if undefined correct) and then move on to assigning values, but I’m not sure how to make it work, and I have a feeling that won’t cover all possible errors.
