Moodle Plugins directory: Multinumerical | Moodle.org

Multinumerical
Question types ::: qtype_multinumerical
Maintained by
Nicolas Dunand
This question type allows asking questions such as :
Please enter X, Y, and Z, such as :
X + Y + Z > 12
Latest release:
435 sites
478 downloads
14 fans
Current versions available: 7
This question type allows asking questions such as :
Please enter X, Y, and Z, such as :
- X + Y + Z > 12
- X - Y <= 3
- Z = [0;100] (Z is between 0 and 100, included)
For each constraint, a feedback can be generated, displaying some text for a condition being fulfilled, and some other text if not.
The grading can be set to be one of the following :
- 100% (all constraints fulfilled) or 0%
- grade = (amount of constraints fulfilled) / (total amount of constraints)
Contributors
Nicolas Dunand (Lead maintainer)
CSE Université de Lausanne: Supporting institution
Please login to view contributors details and/or to contact them
I'm not sure to understand precisely what you're trying to achieve, but intervals for correct responses can be defined, i.e.:
X + Y = [57;62]
There's no way to use boolean operators. If you feel like PM'ing me some more details, I can try to think of something.
Any updates do Moodle 3.4?
Ricardo
I didn't test extensively, but this should work on 3.4.
Thanks again for your work on this software--it's transformed my science classroom. After using the plugin extensively with my classes, I have a few suggestions to make it even better:
1) Create an option to automatically mark zeros or blank parameters incorrect. Right now it is possible for a student to score points by leaving input boxes blank (as many operations involving 0 will return 0).
2) Allow the display of custom text by the input box, instead of the parameter name.
3) More options for grading (e.g. some constraints may be worth more than others)
4) Allow the user to set a tolerance for each parameter (right now I am accomplishing this by using the range function, but it is awkward)
Thanks again!
Andrew
Thanks for your feedback!
1) What about if zero is a correct answer? Can you describe when it is possible to score points when it shouldn't?
2-4) Good idea! Thanks for the suggestions, I'll try to implement this.
Nicolas
1) Allow for a constraint of the type x != val.
2) Give optional feedback for erroneous answers. For example: the constraint says: x=8; but the student answers x=9, and I know the typical mistake why somebody would say 9; I would like to say something specific when that answer is given.
3) I support Andrew's point 4), it is quite cumbersome to use a range.
4) I would like to give Ok|Error as specific feedback, but print the exact answers when right answer is ticked. Currently when the constraint is of the type '=' the right answer appears even when I set 'calculations only'... that gives the answers away
Please let me know if I can help in the process.
Kind regards.
Thanks for your feedback. The best would be this to all be reported in the same place, which is GitHub (see link "Bug tracker" at the top of this page). I have just created a few entries related to Andrew's suggestions. Feel free to add in on those, or to create new issues yourself for the points you mention.
This helps to document the process, but there is no guarantee I will have time to work on this in the near future, so if you have the ability or know someone willing to code this (most should be quite simple but time consuming to fully test etc.), I'd be happy to review any submitted code changes and integrate them in the plugin.
Kind regards,
Nicolas
Yes, initial testing just showed that this works on Moodle 3.10.
I need this type of question, where to write the value of the calculated X, Y, Z coordinates. The correct answer is if all three values are correct. Can I use Multinumerical question type for this purpose? The question does not contain any restrictions. The answer is the exact X,Y,Z values.
The task is simple:
Write down the calculated value of the centre of gravity:
X:
Y:
Z:
Answer:
X = 3,2
Y = 5,6
Z = -10,5
Thank you for your answer or advice on what type of question I should use. We also tried cloze but it evaluates each item separately. And that is not correct. If any of the values are entered wrong, then the whole answer is wrong.
Thank you in advance.
Yes, this absolutely works with multinumerical. The main idea is to have constraints such as "X = 2*Y" or "X > 10" but you can use absolute values.
Here's what I did:
In the "Parameters" part of the question creation I entered "X, Y, Z" – these are the variables we want the student to answer.
In the Constraints part, I intered (1 per line) :
X = 3.2
Y = 5.6
Z = -10.5
(I used the decimal point as separator, but you'll have to check if the comme also works, depending on your Moodle's language settings...)
Make sure you also chose Grade calculation = All or nothing (as not to give partial credit but partially correct responses, e.g. if X and Y are correct but not Z).
That's it!
I followed your instructions and input the example, but it's not working correctly. It always evaluates it as wrong, whether I use a dot or a comma as a decimal separator. Could you please advise me? Also, I have another question: Is it possible to set some tolerance for this type of questions? Thank you for your response.
This might be dependent on the language setting of the user. Try as a first test to change the user interface language to English and see if it succeeds. To set a tolerance use intervals, e.g. if you allow 3.2 to be between 3.15 and 3.25 you can use the notation Z = [3.15;3.25] (X is between 3.15 and 3.25, included).