File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # YourFunctionName
1+ # compareSets
2+ ### Overview
3+ Checks if a student's set expression matches the correct answer. Can compare both the meaning and exact form of set expressions.
4+ When to Use
5+ For questions involving set operations like union (∪), intersection (∩), and complement.
26
3- Teacher-facing documentation for this function.
7+ ### Examples:
8+
9+ "Express the union of sets A and B"
10+ "Simplify: (A ∪ B) ∩ C"
11+
12+ Parameters
13+ ` is_latex ` (optional)
14+
15+ Default: ` false `
16+ Description: Set to true if students enter answers in LaTeX format (\cup, \cap). Set to false for plain text.
17+
18+ ` enforce_expression_equality ` (optional)
19+
20+ Default: ` false `
21+ Description:
22+
23+ ` false ` : Accepts any mathematically equivalent form (e.g., "A ∪ B" = "B ∪ A")
24+ ` true ` : Requires exact form match
You can’t perform that action at this time.
0 commit comments