Note: You are currently viewing documentation for Moodle 3.3. Up-to-date documentation for the latest stable version of Moodle is probably available here: Formulas question type.

Formulas question type: Difference between revisions

From MoodleDocs
No edit summary
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox plugin
<div style="background:#d9edf7;color:#000000;padding:8px 20px 16px;border:1px solid #d9d9d9;border-radius:4px;">
|type = Third-party question type
|set = Author : [https://moodle.org/user/view.php?id=1069069&course=5 Hon Wai Lau]
|entry = [https://moodle.org/plugins/view.php?plugin=qtype_formulas Formulas question type]
|tracker = [https://tracker.moodle.org/issues/?jql=project%20%3D%20CONTRIB%20AND%20component%20%3D%20%22Question%20type%3A%20Formulas%22 Tracker issues]
|discussion = See below.
|maintainer = [https://moodle.org/user/view.php?id=8026&course=5 Jean-Michel Védrine]
|float = left
}}
{{Work in progress}}


{{Formulas question type}}
For a complete and up-to-date documentation of the Formulas question type, consult the course [https://moodleformulas.org/course/index.php?categoryid=4 '''MoodleFormulas'''].


<div style="background:#faffbd;color:#000000;padding:8px;border:1px solid #d9d9d9;border-radius:4px;margin:-80px 0 0px;">
*To be allowed to take the quizzes (recommended), you must log in as '''student''' with password '''Moodle2018#'''
<p style="margin:2px 8px;">
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).
</p>
<p style="margin:5px 8px 5px;">
''The documentation herein applies to all recent versions of Moodle including the current Moodle 3.4''.
</p>
</div>


*You can also log in as a guest but, by doing so, you will not be able to take the quizzes. You may also enroll yourself by creating an account; however, since this site is updated frequently, the preservation of quiz data is not guaranteed.


==Usage==
</div>
 
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==
[https://moodle.org/user/view.php?id=8026&course=5 '''Jean-Michel Védrine''']
 
==Moodle versions==
2012062500 (Moodle 2.3) or newer
 
==Translations available==
This plugin is also available in Mexican Spanish
 
==Installation==
*It's a Moodle plugin, so you must install it (or your administrator must do it).
*Currently formulas question type plugin is not available in the Moodle plugins Directory
*You must download it from the author's Github repository.
*And you must install another plugin (Tim Hunt's adaptive multipart behaviour) so that it works.
 
==Drawbacks==
*Mastering formulas questions is difficult, there is a learning curve
*Documentation is not very good, it was written by Hon Wai Lo (original author of the formulas questions for Moodle 1.9 and 2.0, Jean-Michel Védrine upgraded it for Moodle 2.3 to 2.8), unfortunately Jean-Michel Védrine never had time to improve it
*It's a Moodle plugin, so you must install it (or your administrator must do it). Currently formulas question type plugin is not available in the Moodle plugins Directory, you must download it from the author's Github repository. And you must install another plugin (Tim Hunt's adaptive multipart behaviour) so that it works.
*As any addon, you will be dependent in the future of the maintainer to upgrade it when a new Moodle version is released
 
==See also==
*this forum thread.
*Github documentation for the Formulas question type at https://github.com/jmvedrine/moodle-qtype_formulas
 
=Forum discussions=
 
{| class="nicetable"
|-
! Date
! Author
! Title and link
|-
| 2010-08-15
| Hon Wai Lau
| [https://moodle.org/mod/forum/discuss.php?d=155989 New question type: coordinates]
|-
| 2010-11-30
| Hon Wai Lau
| [https://moodle.org/mod/forum/discuss.php?d=163345 Formulas question type]
|-
| 2011-07-12
| Jean-Michel Védrine
| [https://moodle.org/mod/forum/discuss.php?d=181049 Formulas question type for Moodle 2.0]
|-
| colspan="3" | Formulas page 24
|-
| 2015-05-31
| George Franz
| [https://moodle.org/mod/forum/discuss.php?d=314444 Multiple fill-in-the-blanks graded together]
|-
| 2015-11-26
| Bernat Martinez
| [https://moodle.org/mod/forum/discuss.php?d=323859 An experience on training teachers...]
|-
| 2016-06-03
| Bernat Martinez
| [https://moodle.org/mod/forum/discuss.php?d=334158 A CHECK button for each part (for multipart question & adaptive behaviour)]
|-
| 2016-06-13
| Peter Halverson
| [https://moodle.org/mod/forum/discuss.php?d=334654 Formulas questions errors after 2.9 to 3.1 upgrade]
|-
| 2016-07-12
| Alessandro Bucca
| [https://moodle.org/mod/forum/discuss.php?d=336340 quiz Formulas plugin]
|-
| 2016-07-14
| Matthias Giger
| [https://moodle.org/mod/forum/discuss.php?d=336476 Formulas: Using gcd()]
|-
| 2016-07-27
| Dominique Bauer
| [https://moodle.org/mod/forum/discuss.php?d=337065 Where is the "Check" button in the code?]
|-
| 2016-07-30
| Bernat Martinez
| [https://moodle.org/mod/forum/discuss.php?d=337254 Format check initialization fail]
|-
| 2016-09-21
| florian tobé
| [https://moodle.org/mod/forum/discuss.php?d=340150 Create units conversion exercises]
|-
| 2016-10-23
| Jarrod McCombie
| [https://moodle.org/mod/forum/discuss.php?d=341890 Lab Quiz]
|-
| 2016-11-24
| Godfrey Sovis
| [https://moodle.org/mod/forum/discuss.php?d=343480 Algebra and Formulas qtypes]
|-
| 2016-12-01
| Bernat Martinez
| [https://moodle.org/mod/forum/discuss.php?d=343789 PHP error in Formulas question]
|-
| 2017-01-02
| Kalyan Chatterjea
| [https://moodle.org/mod/forum/discuss.php?d=345107 Formulas Question Type]
|-
| 2017-01-05
| Bernat Martinez
| [https://moodle.org/mod/forum/discuss.php?d=345283 Grading criteria checkbox not displayed in Boost theme]
|-
| 2017-02-11
| Dominique Bauer
| [https://moodle.org/mod/forum/discuss.php?d=347383 Suggestion to improve the input format for units]
|-
| 2017-05-09
| Miro Iliaš
| [https://moodle.org/mod/forum/discuss.php?d=349063 Algebra expression validator for calculated questions]
|-
| 2017-07-10
| Jonas Ceponis
| [https://moodle.org/mod/forum/discuss.php?d=355187 Text as an answer to calculated questions]
|-
| 2017-07-26
| shahin k
| [https://moodle.org/mod/forum/discuss.php?d=356013 Dependent answers in two-part questions]
|-
| 2017-08-09
| lucia liljegren
| [https://moodle.org/mod/forum/discuss.php?d=356627 Formulas question: size of entry box]
|-
| 2017-10-04
| Maurício Reis
| [https://moodle.org/mod/forum/discuss.php?d=359539 Formulas Type Question Maintenance]
|-
| 2017-12-11
| lucia liljegren
| [https://moodle.org/mod/forum/discuss.php?d=362817 Formula Question: Mixing text and numbers in answer]
|-
| 2017-12-12
| François Lizotte
| [https://moodle.org/mod/forum/discuss.php?d=362854 Feedback in Formulas question type]
|-
| 2018-01-21
| Dominique Bauer
| [https://moodle.org/mod/forum/discuss.php?d=364379 Follow up on "Grading criteria checkbox not displayed in Boost theme"]
|-
| 2018-01-26
| Dominique Bauer
| [https://moodle.org/mod/forum/discuss.php?d=364713 Trial mark sequence (Formulas question)]
|}
 
=Translations available=
The Formulas question plugin is available in the following langages:
* English
* French
* Spanish (Mexican)
 
 
[[#top|Back to top of page]]
 
[[Category:Contributed code]]
[[Category:Questions]]
[[Category:Mathematics]]
 
=In other languages=
[https://docs.moodle.org/all/es/Tipo_de_pregunta_F%C3%B3rmulas Español]<br>
[https://docs.moodle.org/33/en/Question_de_type_Formules Français]


[[es:Tipo de pregunta Fórmulas]]
[[es:Tipo de pregunta fórmulas]]
[[fr: Question de type Formules]]

Revision as of 23:41, 3 April 2018

For a complete and up-to-date documentation of the Formulas question type, consult the course MoodleFormulas.

  • To be allowed to take the quizzes (recommended), you must log in as student with password Moodle2018#
  • You can also log in as a guest but, by doing so, you will not be able to take the quizzes. You may also enroll yourself by creating an account; however, since this site is updated frequently, the preservation of quiz data is not guaranteed.