Formulas question type: Difference between revisions
Formulas question type | |
---|---|
Type | Third-party question type |
Set | Author : Hon Wai Lau |
Downloads | Formulas question type |
Issues | Tracker issues |
Discussion | See below. |
Maintainer(s) | Jean-Michel Védrine |
Line 48: | Line 48: | ||
2012062500 (Moodle 2.3) or newer | 2012062500 (Moodle 2.3) or newer | ||
= | ==Translations available== | ||
This plugin is also available in Mexican Spanish | |||
=Maintainer(s)= | =Maintainer(s)= |
Revision as of 01:09, 1 February 2018
Note: This page is a work-in-progress. Feedback and suggested improvements are welcome. Please join the discussion on moodle.org or use the page comments.
As there is no or little difference in the Formulas question type plugin for recent versions of Moodle (2.0 and above), the documentation for the Formulas question type has been moved to one location (the present page).
The documentation herein applies to all recent versions of Moodle including the current Moodle 3.4.
Usage
You would enter your 'sets' (called 'lists' in formulas questions) in the 'Random variables' field when creating question as:
a = {100, 125, 150, 175, 200}; b = {1, 2, 3, 4, 5}; c = {10, 12, 14, 16, 18};
When an attempt is started a, b, and c will take a value drawn from the corresponding list at random.
You can then define other variables depending of these ones in the 'Global variables' field if you want. For instance if you need the value of a+2*b somewhere in your question text or Combined or general feedback, just define
d=a+2*b; in 'Global variables'
Once you have defined your variables, you can use them in all the question's texts putting them in curly braces (for instance {a}, {b} or {d}). This is true not only for the Question text but also for all feedbacks and hints when you use interactive behaviour (The author thinks that the fact that variables can't be used in calculated question's feedback is a serious problem to give students an appropriate feedback using the values they saw in their attempt)
Other advantages
- Another big advantage of formulas questions is that a question can have several 'parts' and all parts using the same variables; and even more, the answer to each part can not only be a number but a vector if you want.
- Last thing, formulas questions has a complete unit system that is quite useful for engineering
Author
Jean-Michel Védrine
Moodle versions
2012062500 (Moodle 2.3) or newer
Translations available
This plugin is also available in Mexican Spanish
Maintainer(s)
Jean-Michel Védrine has maintained the Formulas question type plugin until 2017. He is now back in force for 2018.
Installation
The Formulas question is a Moodle plugin, so you or your Administrator must install it.
Prior to installing the Formulas question though, you need to install install another plugin, that is Tim Hunt's adaptive multipart behaviour, adaptivemultipart available from GitHub or adaptivemultipart from the Moodle Plugins directory. Note that you need version 3.3 or newer of this behaviour, because the Formulas question will not work with previous versions.
You can then install the Formulas question either from the Moodle Plugins directory, from GitHub or from a zip file:
Installing from the Moodle Plugins directory
The Formulas question is available from the Moodle Plugins directory. Install the Formulas question as any other Moodle question type plugin.
Installing from GitHub
The Formulas question is available at the author's Github repository. To install the question, type the following commands in the root of your Moodle install:
git clone git://github.com/jmvedrine/moodle-qtype_formulas.git question/type/formulas echo '/question/type/formulas/' >> .git/info/exclude
Installing from a zip file
Download the zip file from GitHub. Unzip the file in the 'question/type' folder and then rename the new folder to 'formulas'.
Moodle Tracker
Date | Author | Title and link |
---|---|---|
2010-08-27 | Hon Wai Lau | New question type: Formulas |
2015-12-17 | Tikva | Formulas question type does not support expressions calculation |
2016-06-14 | Renaat Debleu | Formulas question type does not support local number formatting |
Forum discussions
Translations available
The Formulas question plugin is available in the following langages:
- English
- French
- Spanish (Mexican)