Rather than just calling `complex(...)` on the staff answers, also call `calc.evaluator`. This way, simple things like `1/3` can be entered, as well as more complicated explicit equations (e.g. `sqrt((12^2 + 26^2)/2)` etc, etc) Simplify and update the tests to work with this.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| safe_exec | Loading commit data... | |
| templates | Loading commit data... | |
| tests | Loading commit data... | |
| __init__.py | Loading commit data... | |
| capa_problem.py | Loading commit data... | |
| checker.py | Loading commit data... | |
| correctmap.py | Loading commit data... | |
| customrender.py | Loading commit data... | |
| inputtypes.py | Loading commit data... | |
| javascript_problem_generator.js | Loading commit data... | |
| javascript_problem_grader.js | Loading commit data... | |
| registry.py | Loading commit data... | |
| responsetypes.py | Loading commit data... | |
| util.py | Loading commit data... | |
| xqueue_interface.py | Loading commit data... |