Moodle plugins directory: Formulas question type | Moodle.org
Formulas question type
Question types ::: qtype_formulas
Maintained by Dominique 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.
Contributors
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
I requested the installtion of stack plugin previously , but turns out It isn't supported on Windows .
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
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..!
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
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§ion=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
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!
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
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);
};