From 50b58ed2675190439876dc85c31b1da5872bfc51 Mon Sep 17 00:00:00 2001 From: Marcus Messer Date: Thu, 16 Apr 2026 12:11:01 +0100 Subject: [PATCH] Made strict_syntax false by default --- app/docs/user.md | 2 +- app/evaluation.py | 2 +- app/utility/expression_utilities.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/docs/user.md b/app/docs/user.md index 032baea..83c929b 100644 --- a/app/docs/user.md +++ b/app/docs/user.md @@ -240,7 +240,7 @@ If `strict_syntax` is set to true then the answer and response must have `*` or If `strict_syntax` is set to false, then `*` can be omitted and `^` used instead of `**`. In this case it is also recommended to list any multicharacter symbols expected to appear in the response as input symbols. -By default `strict_syntax` is set to true. +By default `strict_syntax` is set to false. #### `symbol_assumptions` diff --git a/app/evaluation.py b/app/evaluation.py index 891f9af..b391fcb 100644 --- a/app/evaluation.py +++ b/app/evaluation.py @@ -288,7 +288,7 @@ def evaluation_function(response, answer, params, include_test_data=False) -> di ) # FIXME: Move this into expression_utilities - if params.get("strict_syntax", True): + if params.get("strict_syntax", False): if "^" in response: evaluation_result.add_feedback(("NOTATION_WARNING_EXPONENT", symbolic_comparison_internal_messages("NOTATION_WARNING_EXPONENT")(dict()))) if "!" in response: diff --git a/app/utility/expression_utilities.py b/app/utility/expression_utilities.py index 57ca2b9..1195726 100644 --- a/app/utility/expression_utilities.py +++ b/app/utility/expression_utilities.py @@ -671,7 +671,7 @@ def create_sympy_parsing_params(params, unsplittable_symbols=tuple(), symbol_ass symbol_dict.update(sympy_symbols(unsplittable_symbols)) - strict_syntax = params.get("strict_syntax", True) + strict_syntax = params.get("strict_syntax", False) parsing_params = { "unsplittable_symbols": unsplittable_symbols,