Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/docs/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
2 changes: 1 addition & 1 deletion app/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion app/utility/expression_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,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,
Expand Down
Loading