CodeRunner is a Moodle plugin for programming assignments. However, after the plugin is deployed, it can be quite easily repurposed into a STACK-type math assignment checker with the checking logic implemented, e.g., in the Python language.
After creating the CodeRunner question