-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-designing the answer test for integration #1229
Milestone
Comments
Thank you Luke!
|
@LukeLongworth just to clarify one thing about the return format of answer test functions.
The "Result" is a Boolean true/false which is what you normally want to see, so yes look for the 2nd argument in the sandbox. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Over the years, the Int answer test has grown considerably and now can deal with many different situations depending on given options. While the test became versatile, this development went against one of the design principles for answer tests: They should only do one thing, and they should do it well. The Int answer test currently does many things at once:
NOCONST
flag in the documentation)FORMAL
flag in the documentation)This has several shortcomings:
NOCONST
is ignored ifFORMAL
is given)The documentation comments this as:
In an attempt to improve the situation, I've started a
dev
branch calledat-antidiff
iss1229
which tries to untangle the different mechanisms of the Int answer test into several new answer tests:ATAntiDiff
: Checks if the student answer and the teacher answer are antiderivatives of the same functionATAddConst
: Given a list of variables in the options, checks if the student answer exactly contains one additional variable not contained in the list, and if it is added as a+C
to the expression.This is work in progress, and some feedback would be nice. Open questions to me are:
FORMAL
flag in the currentInt
answer test? Is it important that the new answer tests can check for formal equivalence? If yes, can this be done by other, already existing answer tests?Int
checks for absolute values in logarithms? Should there be a separate answer test to check for this?ATAddConst
: Would you like to have an option to allow for "weird constants"? Technically, adding+C^3
to a basic antiderivative also gives you the set of antiderivatives, so mathematically it would be wrong to condone it. However, such a check might be difficult to program (one would have to check if the function inC
is surjective on the reals), and it's not so clear if anyone would really use it.The text was updated successfully, but these errors were encountered: