Question types: Formulas question type

Maintained by Out of officeDominique Bauer
This is a question type plugin for Moodle with random values and multiple answer fields.
927 sites
39 fans
Current versions available: 2

This is a question type plugin for Moodle with random values and multiple answer fields.

The answer fields can be placed anywhere in the question so that we can create questions involving various answer structures such as coordinate, polynomial and matrix.

Other features such as unit checking and multiple subquestions are also available.

These functionalities can simplify the creation of questions in many fields related to mathematics, numbers and units, such as physics and engineering.


Screenshot #0
Screenshot #1


Out of office
Dominique Bauer (Lead maintainer)
Picture of Jean-Michel Védrine
Jean-Michel Védrine: Former maintainer
Picture of hon wai lau
hon wai lau: Original creator
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Maurício Reis
    Tue, Oct 3, 2017, 11:19 PM
    Hello Jean, first I must thank you for the long you keep this project up. It helped me a lot. I would like to know about this "adoption". Just a few moments ago the moodle administrator here in my institution reported a possible incompatibility of the Formula types question with another plug-in. He suspects it is due to incompatibility of Formula Type question with Moodle 3.3.1. If you can just point me out some directions, maybe I can see what I can do to keep the project alive, or at least contribute in some way.
    Again, thanks for the work you already did.
  • Picture of hon wai lau
    Mon, Oct 9, 2017, 4:28 PM
    First, you will need to understand what the problem is and the error messages. Then, you may locate the codes with the problem. You may ask the developers of the question engine for helps. Each upgrade have minor changes that may break the some plugins. There is a need for constant maintenance to change a small part of the code to make it work again. Or, you may help the documentations.
  • Picture of John Pap
    Sat, Jan 13, 2018, 1:26 AM
    Hi Jean-Michel, is there a way to ignore spaces AND to have math symbols such as * % in one answer ?
    For example I'd like to write : M ← (N * 2) % 4 (with left arrow, asterisk and modulo).
    Either in Formula or Algebra.
    Thank you.
  • Picture of Miro Iliaš
    Fri, May 8, 2020, 6:11 AM
    Hello, any upgrade of this plugin for Moodle 3.7,3.8 ?
  • Picture of stefan weber
    Fri, May 15, 2020, 4:48 PM
    is it possible to use a student's answer to a previous question part as a variable in another question part? we want to make sure that just because they make an initial mistake, all of their other parts are automatically wrong.
  • Out of office
    Sun, May 24, 2020, 10:57 AM
    Hello Miro,
    I just applied to be the next maintainer of the plugin and I could soon submit the upgrade for Moodle 3.7 and 3.8. Obviously, the agreement of is required. I will keep you posted.
  • Out of office
    Sun, May 24, 2020, 12:02 PM
    Hello Stefan,
    Yes, it is possible to use a student's answer to a previous question part as a variable in another question part, by defining Grading variables and a grading criterion. You will find a first example at Unfortunately, I have not yet figured out how to account for units.
  • Picture of Cormac Quigley
    Tue, May 26, 2020, 6:25 AM
    Is it possible to get this plugin validated for Moodle 3.8? Is there any way of validating the current version without an update?
  • Picture of David Mudrák
    Tue, May 26, 2020, 7:21 PM

    Many thanks to Dominique Bauer for the offer to adopt this plugin -

  • Out of office
    Thu, May 28, 2020, 10:25 PM
    Version 4.9 for Moodle 3.0 to 3.8 is now available.
  • Out of office
    Mon, Jun 1, 2020, 11:50 AM

    Thank you for trusting me and entrusting me with the maintenance of the Formulas plugin.

    Jean-Michel has done remarkable work for many years as the maintainer not only of the Formulas plugin but also of many others. I and many other moodlers owe him a lot. Now that he's taken a well-deserved retreat, I wish him health, happiness and good times in his beautiful rooftop terrace in Montpellier, in the south of France. smile

    The maintenance of this wonderful plugin, brilliantly written ten years ago by Hon Wai Lau, is truly an honor for me, and a task that I will strive to carry out as best as possible.
  • Picture of Giulio Peruginelli
    Fri, Jun 12, 2020, 6:22 PM
    is it possible to assign a negative feedback to a wrong answer, as for example in the multiple choice question?
  • Picture of hon wai lau
    Thu, Jun 25, 2020, 5:27 PM
    It is great to hear that the plugin got a new maintainer, Dominique Bauer. I expected his works would keep the plugin alive, and this would benefit for many teachers and students.

    It takes years of my work to finish the core part of the plugin, and many more years of work from Jean-Michel to port and maintain it in the new version of Moodle. Let me take this time to thank him for his great work again.
  • Picture of lina al - saleh
    Wed, Jul 29, 2020, 4:54 AM
    Can I install formula's plugin on Windows server ?
    I requested the installtion of stack plugin previously , but turns out It isn't supported on Windows .
  • Picture of Harri Holappa
    Wed, Jul 29, 2020, 11:01 PM
    Does the relative error variable in grading criterion accept "== 0"? We tested a simple multiplying and division question with the Number answer type, and the correct answer was marked as incorrect in the preview window - seemingly randomly. The problem vanished when we switched the grading criterion to "Relative error < 0.001" or "Absolute error < 0.000001. Is this a bug or working as intended?

    The random variables we used were:

    The global variables we used were:
1 2
Please login to post comments