I am working on a precalculus course with HarvardX. I am wondering if it is possible to write a custom grader for edX problems that utilizes the formula-response equation parser/evaluator.
In particular, I want to ask a question like "Simplify b^3 * b^6". I want to accept a response like "b^9" but not "b^3 * b^6" or . To grade responses in this way, I would need to grade in a two-step process. First, we would need to analyze the response as a string (with a custom Python grader) to check that the response is simplified into the correct format (e.g. count the number of "^" characters). Second, we would need to use edX's formula-response engine to check if the formula evaluates to the right thing for different values of "b" (and so students can preview their response). I can see in the documentation how to do each of these steps individually (e.g. here <http://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/exercises_tools/math_expression_input.html> and here <http://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/exercises_tools/custom_python.html#create-a-custom-python-evaluated-input-problem-in-studio>), but I can't figure out how to combine them. In particular, I don't know how to access the equation parser/evaluator that is used in formularesponse directly from a Python script. Any help you can provide would be appreciated! -- You received this message because you are subscribed to the Google Groups "General Open edX discussion" group. To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/c72e29ad-c2e8-42a8-8df6-89fd1dec817d%40googlegroups.com.
