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:
1861 sites
431 downloads
74 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

Comments

  • Lina Al - Saleh
    Wed, 29 Jul 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 .
  • Harri Holappa
    Wed, 29 Jul 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:
    firstthing={16,24,28,32,48,56,64};
    secondthing={8,10,20,40}

    The global variables we used were:
    answer=(4*firstthing)/secondthing*7
  • Florian Leupold
    Fri, 6 Nov 2020, 7:51 PM
    Thanks so much for this great plugin! Might I suggest two features?
    1) It would be great to have a function to return the number of significant figures of a number.
    2) To me, it would be helpful to fix an absolute number of points to be deducted in case of wrong units instead of a relative amount.
    Thanks for considering..!
  • Сергей Ардуинов
    Sun, 8 Nov 2020, 9:46 PM
  • Florian Leupold
    Sun, 29 Nov 2020, 11:45 PM
    I have switched to Marklar editor in order to properly save JSXGraph code in Formulas questions (it gets overly sanitized by Atto HTML editor). Strangely, Markdown input does not seem to get parsed as Markdown but rather HTML in Formulas questions, whereas it is parsed as Markdown in other activities. Can you confirm this?
  • Cl GHILARDI
    Fri, 22 Jan 2021, 4:29 PM
    It would be useful to integrate the script that resizes text boxes while users are typing (see https://moodle.org/mod/forum/discuss.php?d=390574) in a new version of the plugin. Maybe with a check box in the question creation form : Auto resize (Yes/No).
  • Florian Leupold
    Sun, 31 Jan 2021, 10:53 PM
    I would like to make a small suggestion for a future version: It would be nice to select scientific notation for the correct result, which is shown as feedback.
  • Bitmoji
    Mon, 8 Mar 2021, 12:12 PM
    I was trying to look up how to resize the answer box on the https://moodleformulas.org/ site and the login appears to be stuck in a loop. Could you please check this. Thanks!
  • Daniel Burda
    Mon, 8 Mar 2021, 5:05 PM
    Hi guys,

    first of all: This qType is amazing! I came across this qtype just recently and I am currently migrating all of my static questions to the formula type.

    However, I just experienced an issue while trying to regarde a quiz. After the quiz was taken by the students I realized that I was to strict in terms of rounding tolerance. So I modified the "relative error" setting in the question and performed a regrading. However, the regarding shows no effect on the automatic grading nor the display of the "correct answer" (also adjusted). Do I have to reset or change any other setting to impact the marking in the regrading process?

    Cheers
    Daniel
  • Éric Bugnet
    Wed, 10 Mar 2021, 2:26 PM
    Hi
    It seems that when the answer is a number answer, any text (non numeric for exemple) should show an alert. It's usefull for the comma decimal alert for french people...
    But it seems that it doesn't work anymore.
    - Tested on your site (and mine) : https://moodleformulas.org/course/view.php?id=22&section=4
    - Tested on Firefox and Chrome
    When in the answer box you write something else than number, no alert shown and aswer considered as wrong.
    Did I misunderstood ?
    Éric
  • Fran González
    Sun, 18 Apr 2021, 1:44 AM
    At school we use formula question type in our moodle 3.4 version. Just a couple of weeks ago we have gone up to moodle 3.9 and i am finding and issue that i cannot find how to solve. Before, when the student wanted to answer a question if the format he was using wasn't correct, a little red triangle would appear right at the end of the answering box and that was very useful. Example: student trying to use comma instead of dot for decimals, using "o" instead of "0", forgetting to write the units, etc. Well, all this doesn't seem to work at moodle 3.9 version. ¿Could you kindly help me? Really thankful.
  • Fran González
    Sun, 18 Apr 2021, 1:58 AM
    Hi again.
    Just saw that what i have found reported is also been reported as a bug but it is still no resolved.
    See in bugs tracker: Plugins CONTRIB-8421, QT_Formulas: Input Validation
    Hope you can fix it soon.
    Thanks!
  • Philipp Imhof
    Sun, 9 May 2021, 5:04 PM
    Hello!

    Would you mind having a look at my PR #26 on GitHub? It adds functions for statistics (normal distribution cdf) and number theory (modular exponentiation and modular inverse) and would make the plugin even more useful for quizzes in statistics or cryptography classes.

    Thanks
  • Edgardo Palazzo
    Fri, 23 Jul 2021, 10:22 PM
    For those of you who have the input validation working, I do this to deal with users having a comma as decimal separator: let javascript replace the commas with points.
    Edit the file: [root to moodle]/question/type/formulas/script/formatcheck.js and add one line to the onkeyup event:

    input.onkeyup = function() {
    this.value = this.value.replace(',','.'); // <<<------ THIS LINE ADDED
    this.formulas.common.fn.update(this.formulas.common, this.formulas.self);
    };

  • Sasha Bogachyk
    Thu, 5 Aug 2021, 12:13 AM
    I need comma as decimal separator, but I get warning that should be a point. Is it possible to solve it? Would be thankful for your help.
Please login to post comments