Formulas question type

Question types ::: qtype_formulas
Maintained by dynamiccourseware.orgDominique Bauer, Philipp Imhof
This is a question type plugin for Moodle with random values and multiple answer fields.
Latest release:
2205 sites
485 downloads
77 fans
Current versions available: 3

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.

Screenshots

Screenshot #0
Screenshot #1

Contributors

dynamiccourseware.org
Dominique Bauer (Lead maintainer)
Philipp Imhof: Co-maintainer
Jean-Michel Védrine: Former maintainer
hon wai lau: Original creator
Please login to view contributors details and/or to contact them

Comments RSS

顯示評論
  • Susan Jones
    2023年11月3日(週五) 10:10
    Wasn't there a moodle course in how to use this? I've forgotten a lot...
  • Philipp Imhof
    2023年11月3日(週五) 14:22
    It's https://dynamiccourseware.org/ and the link ("More documentation on this plugin") is just at the top of this page in the section "useful links"…
  • Philipp Imhof
    2023年11月17日(週五) 03:53
    We have just released version 5.3.1 of the Formulas Question plugin, a bugfix release making sure that a risky grading criterion cannot crash a question or even an entire quiz.
  • Philipp Imhof
    2023年11月17日(週五) 17:02
    We have added further stability improvements and released version 5.3.2 of the Formulas Question plugin. Sorry to those who have already updated their installation, this could have been added with the last version already.
  • Philipp Imhof
    2024年04月20日(週六) 23:21
    Moodle 4.4 is going to be released very soon, bringing support for PHP 8.3. We have just released version 5.3.3 of the Formulas Question plugin and are pleased to announce that it is fully compatible with all recent versions of PHP and Moodle.

    Please note that this is (probably) the last version for Moodle < 4.1 and PHP < 8.0. The next major release will focus on the more recent versions.
  • Tasos Koutoumanos
    2024年06月26日(週三) 19:56
    Dear Philipp, while the plugin itself is compatible with Moodle 4.3, it has a dependency to "qbehaviour_adaptivemultipart", which in turn is NOT compatible with Moodle 4.3. Would you consider removing this dependency?
  • Philipp Imhof
    2024年06月26日(週三) 20:51
    Thanks, Tasos, for your comment.

    I actually did not even know that the adaptive multipart behaviour was flagged as "not compatible" with Moodle 4.3, because it de facto seems to be, as all the automated tests we use in the Formulas question plugin automatically install that behaviour as a prerequisite and they all succeed. Also, the plugin list says that qbehaviour_adaptivemultipart in version 4.3.8 works with Moodle 3.9+. Do you actually have any error messages or the like? If so, please feel free to open an issue, even in our bug tracker.

    However, removing the dependency is IMHO absolutely unthinkable, because Formulas questions could then no longer be used with the adaptive behaviour. That would be too much of a restriction for many teachers, probably.
  • Philipp Imhof
    2024年10月7日(週一) 14:21
    Dear users. Moodle 4.5 (LTS) has just been released. We are pleased to announce that our plugin is fully compatible and we have just published a service-release 5.3.4 including the necessary tests. There are no new features, so you do not necessarily need to upgrade.
  • Idriss SEKRANE
    2024年10月14日(週一) 15:51
    Dear Developper, I don't understand how to manage conversion unités for seconds. Indeed, for other units, everything seems to work but not for seconds ! I want to add "s: k c d m u n p f;" but when my users try to answer with "ms" it doesn't work. For example, the correct answer entered by the teacher is "0.22 s" and a student wants to put "220 ms". It should be correct but it's corrected wrong ! Could please help me with that ?
  • Philipp Imhof
    2024年10月14日(週一) 15:56
    Hello Idriss. This is not a good place for such questions; I'd rather go to the Moodle Quiz Forum. Nevertheless, I gave it a quick try and could not reproduce your problem. Setting 0.22 as the answer and s as the unit, the student can enter 0.22 s or 220 ms and both are considered correct. You do not have to add any special conversion rules or whatever. This works out-of-the-box.
  • Philipp Imhof
    2025年02月11日(週二) 00:08
    Dear users.

    We are planning to release a new major upgrade to the Formulas question plugin that will, in the long run, make it much easier to add new features. It comes with full backwards compatibility and brings some nice features w. r. t. syntax.

    If you have a testing installation, you can already download the new version from our GitHub (master branch) and have a look at it. We would appreciate your feedback (via a GitHub issue), especially if you encounter any problems. Note that the version number has not yet been updated, in order to make it easier to return to the current stable version. Hence, testers must "Purge all caches" on their system after installation.

    While it is possible to test it on a production instance, we do not recommend to do so. Even if we took great care, there might be hidden bugs. If you decide to test it, don't forget to make a full backup.

    Best regards
  • Philipp Imhof
    2025年03月18日(週二) 16:10
    Dear users

    We have released 5.3.5, a maintenance release of the old stable version. It includes patches that will improve restore processes on Moodle 4.4 and 4.5.

    Note that this version will not offer compatibility with the upcoming release of Moodle. Users of future Moodle 5.0 will need to install Formulas Question 6.0 which is going to be released right after Moodle 5.0.

    Best regards
  • diego dubois
    2025年04月16日(週三) 04:09
    I have a problem to restore quiz. this is the trace
    Trazado de la pila (stack):
    line 200 of /question/type/formulas/backup/moodle2/restore_qtype_formulas_plugin.class.php: TypeError thrown
    line 200 of /question/type/formulas/backup/moodle2/restore_qtype_formulas_plugin.class.php: call to array_merge()
    line 117 of /backup/util/helper/restore_questions_parser_processor.class.php: call to restore_qtype_formulas_plugin::convert_backup_to_questiondata()
    line 150 of /backup/util/xml/parser/processors/grouped_parser_processor.class.php: call to restore_questions_parser_processor->dispatch_chunk()
    line 207 of /backup/util/xml/parser/progressive_parser.class.php: call to grouped_parser_processor->after_path()
    line 287 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->inform_end()
    line ? of unknownfile: call to progressive_parser->end_tag()
    line 178 of /backup/util/xml/parser/progressive_parser.class.php: call to xml_parse()
    line 157 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->parse()
    line 464 of /backup/util/dbops/restore_dbops.class.php: call to progressive_parser->process()
    line 1552 of /backup/moodle2/restore_stepslib.php: call to restore_dbops::load_categories_and_questions_to_tempids()
    line 34 of /backup/util/plan/restore_execution_step.class.php: call to restore_load_categories_and_questions->define_execution()
    line 199 of /backup/util/plan/base_task.class.php: call to restore_execution_step->execute()
    line 191 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
    line 168 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
    line 411 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()
    line 716 of /blocks/sharing_cart/classes/controller.php: call to restore_controller->execute_plan()
    line 95 of /blocks/sharing_cart/restore.php: call to block_sharing_cart\controller->restore()
    i think sometinhs is wrong with the plugin.
    Regards Diego
  • Philipp Imhof
    2025年04月16日(週三) 14:31
    Hi Diego & thanks for reaching out.

    I have opened an issue on GitHub: https://github.com/FormulasQuestion/moodle-qtype_formulas/issues/184

    As you can imagine, that error does not happen in my test cases. So I would appreciate having more information, e. g. the versions (Formulas, Moodle, PHP) you used for the backup and the restore. If possible, please follow the link above and comment on the issue to help me find the problem. The best thing would obviously be to have the backup of the quiz you are trying to restore, but I don't know if it is possible for you to share it.
  • Philipp Imhof
    2025年04月21日(週一) 16:44
    Hello Diego

    I haven't heard from you for a few days. Please note that I cannot reproduce the issue you mentioned. I would love to find the root of the problem and solve it for you, but I can only do so with your help. I would appreciate getting more information from you soon.

    Best regards
1 2 3 4 5 6
Please login to post comments