Algebra

Question types ::: qtype_algebra
Maintained by Jean-Michel Védrine
Question type where the student must answer by typing an algebra formula. Correctness can be checked by three different methods.

Algebra 1.7 for Moodle 2.8, ... 3.5

Moodle 3.0, 3.1, 3.2, 3.3, 3.4
Released: Monday, 5 February 2018, 7:12 PM

NEW IN THIS RELEASE

  • More choice for the TeX expressions delimiters to match your website TeX filters settings.

  • And a new way to display the TeX formatted answer during attempts.

    There is now a new setting "Method to diplay answer formula".

If You choose "Using an iframe element" (default) nothing changes. There is a "Display" button and the formatted answer is displayed in an iframe.

But you can try the new method "Using dynamic AJAX request" and there is no button , the formatted formula is updated dynamically when an answer is typed (copy/paste is also supported). For this to works you must have the MathJax filter enabled (MathJax enabled by script in page head doesn't work with this method).

I think this is really better than the old iframe method.

The only drawback is that a request is made by the browser to the server each time something is typed and that could be a problem with a great number of students attempting algebra questions at the same time. I will try to improve this method to limit the number of requests in a given amount of time in a future version.

Currently when the server is not able to interpret the answer, nothing is displayed.

For instance if the student type "x^2" an "x" is displayed at the beginning, then nothing is displayed when he type "x^" as this is invalid, then when he type "x^2" the formatted answer is displayed.

If you think it would be better to display something (for instance a small warning sign) when the answer is invalid, post a comment.

Version information

Version build number
2018020400
Version release name
1.7 for Moodle 2.8, ... 3.5
Maturity
Stable version
MD5 Sum
367e74a7b9a5e4b04ee7384da79d6048
Supported software
Moodle 3.0, Moodle 3.1, Moodle 3.2, Moodle 3.3, Moodle 3.4

Version control information

Version control system (VCS)
GIT
VCS repository URL
VCS branch
master

Default installation instructions for plugins of the type Question types

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "myquestiontype") in the "question/type" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation