Multiple choice is easy to grade but often gives the answer away. Free-form input is more valuable for learning, yet checking maths answers automatically raises hard questions: is 0.5 the same as 1/2, is an unsimplified answer correct, and how do you handle bracket typos? In this masterclass you use Claude Code to build an evaluation chain of formula input, parser, computer algebra with SymPy and grading rules. A test base of realistic input exposes edge cases before learners find them.
Who the answer checking masterclass is for
Developers of learning apps, assessment platforms and university systems who need to grade free-form mathematical input and have back-end experience.
What you'll walk away with
- Define grading rules for equivalence, form and precision with subject experts
- Parse formula input robustly and catch common input mistakes
- Check equivalence symbolically, backed up by numerical sampling
- Generate feedback that distinguishes wrong, incomplete and not simplified
- Build a test base of realistic input and extend it continuously
Typical scenarios
- A learning app accepts only factorised forms when factorising, yet recognises any order of factors and sign variants as correct.
- A university platform grades integrals with any constant of integration and reports a missing constant specifically.
- With the test base, a team discovers that input using a decimal comma was being wrongly rejected as a syntax error.
Does this fit your team?
Pick a few dates that suit you. The request is non-binding, and the agenda is tailored in a short call beforehand.
What the answer checking masterclass covers
- What correct meansEquivalence, required form, rounding and units as grading rules agreed with learning designers.
- Input and parsingFormula input with MathLive or a text field, decimal commas, implicit multiplication and bracket errors.
- Checking with computer algebraSymbolic simplification with SymPy, its limits and numerical sampling as a second safeguard.
- FeedbackDistinguish partly correct, not simplified, wrong form or calculation error and report it clearly.
- Test base and operationsReal and synthetic input as tests, time limits, protection against malicious input and logging.
Before the answer checking masterclass: prerequisites
- Experience with Python and back-end development
- A laptop with Python, Node.js and access to a coding agent
Materials you keep
- An evaluation module with parser, computer algebra and grading rules
- A test base with edge cases and common input mistakes
- Guidance for agreeing grading rules within the team