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.98 for Moodle 3.x 4.x

Moodle 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 4.0, 4.1, 4.3, 4.4, 4.5, 5.0
Released: Friday, 4 July 2025, 9:15 PM

Version 1.98 (July 04th, 2025)

Hello fellows Moodlers, Iam now retired since many years but Peter Mayer reported that this qtype plugin has a problem of duplicated questions during restores. Fortunately Tobias Garske made a patch to fix this problem, and even if I can make no promise about the future maintenance of this plugin, I think I must release a new version as a service to users of this plugin.

Version 1.9 (March 27th, 2019)

The algebra question type can now be used as a subquestion of a combined question (see https://moodle.org/plugins/qtype_combined) There are some limitations when you insert an algebra question in a combined question:

  • There is no Answer box prefix because you can write what you want in the combined question text before the algebra subquestion.
  • Allowed Functions is always "All" as this feature was never implemented (I must remove it one day or finish it, it is here like that from the beginning when Roger Moore created this question type)
  • Each answer is always 100% and there is no answer feedback, only a global feedback for the subquestion when the student response is not correct (All combinable question types seems to have the same limitations so I don't know if this is a limitation of the combined API)

The algebra question now support Moodle mobile (only available with Moodle 3.5 and ulterior versions, will not work with Moodle previous versions). A big thank you to Marcus Green for all his work on adding mobile support to question types.

Version 1.0 (September 30th 2012)

  • New setting to select the default comparison method
  • MathJax will be used for TeX rendering if MathJax is installed
  • Additionnal HTML in HEAD (will not work if Mathjax is installed using a theme)

Version 0.0.4

Improvements - Export and import to Moodle XML format - Backup and restore functions added Bug fixes - Fixed parser problem with negative numbers

Version 0.0.3

Improvements - Added danish localizations based on forum feedback: mltiplication now uses 'cdot' and decimal points are rendered as commas when Danish is selected as a language Bug fixes - Operator priority, BODMAS, not quite implemented correctly. */ and +- not implemented as equal priority - now fixed

Version 0.0.2

Significant changes as a result of the first round of feedback! - Renamed parser classes to conform to coding guidelines - Moved all parser strings into a language pack - Switched a lot of double quoted string to single as per guidelines - added automatic formatted comments as required by coding guidelines - changed treatment of variable names to help reduce confusion. Now the first letter is treated as the name and the rest are subscripted. Greek letter names are treated as a single character i.e. theta1 becomes \theta_{1} in LaTeX. - Added option to specify text which goes in front of response box - Added support for specified variable names in the parser to improve parsing in some situations e.g. 'xy' will now get treated as 'x * y' if there are two variables 'x' and 'y' defined. Bug fixes - fixed bug when evaluating special constants in the parser - fixed incorrect rendering of sqrt in LaTeX by the parser - fixed incorrect sage-server.py file in the ZIP

Version 0.0.1 released

Version information

Version build number
2025070400
Version release name
1.98 for Moodle 3.x 4.x
Maturity
Stable version
MD5 Sum
a412a176aa19cdf9fa44771f5c36d455
Supported software
Moodle 3.5, Moodle 3.6, Moodle 3.7, Moodle 3.8, Moodle 3.9, Moodle 3.10, Moodle 3.11, Moodle 4.0, Moodle 4.1, Moodle 4.3, Moodle 4.4, Moodle 4.5, Moodle 5.0
  • Latest release for Moodle 3.5
  • Latest release for Moodle 3.6
  • Latest release for Moodle 3.7
  • Latest release for Moodle 3.8
  • Latest release for Moodle 3.9
  • Latest release for Moodle 3.10
  • Latest release for Moodle 3.11
  • Latest release for Moodle 4.0
  • Latest release for Moodle 4.1
  • Latest release for Moodle 4.3
  • Latest release for Moodle 4.4
  • Latest release for Moodle 4.5
  • Latest release for Moodle 5.0

Version control information

Version control system (VCS)
GIT
VCS repository URL

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