Formulas question type icon

Formulas question type

This is a question type plugin for Moodle with random values and multiple answer fields.
Price option: Free

Supports Moodle 2.6-5.2 See all versions
Latest release: 3 weeks ago
Installations: 2215
Downloads (last 90 days): 769

Frankenstyle name: qtype_formulas
Question types

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

Hello, any upgrade of this plugin for Moodle 3.7,3.8 ?
Hi Jean-Michel, is there a way to ignore spaces AND to have math symbols such as * % in one answer ?
For example I'd like to write : M ← (N * 2) % 4 (with left arrow, asterisk and modulo).
Either in Formula or Algebra.
Thank you.
First, you will need to understand what the problem is and the error messages. Then, you may locate the codes with the problem. You may ask the developers of the question engine for helps. Each upgrade have minor changes that may break the some plugins. There is a need for constant maintenance to change a small part of the code to make it work again. Or, you may help the documentations.
Hello Jean, first I must thank you for the long you keep this project up. It helped me a lot. I would like to know about this "adoption". Just a few moments ago the moodle administrator here in my institution reported a possible incompatibility of the Formula types question with another plug-in. He suspects it is due to incompatibility of Formula Type question with Moodle 3.3.1. If you can just point me out some directions, maybe I can see what I can do to keep the project alive, or at least contribute in some way.
Again, thanks for the work you already did.
I should also mention that my old documentation have been ported here recently, thanks to Dominique Bauer
https://docs.moodle.org/29/en/Formulas_question_documentation
I am not sure why I cannot find the directly link in this moodle website.
Hello Miro,
I agree with Jean-Michel that this plugin may need a new maintainer. When I leave my previous job, I am glad that he was able to take the maintenance, for more than five years. I have found that it is quite tough to maintain it while I am not using it myself.
The question engine evolves slowly so constant communication with the official team may be required to change the related codes. For a new version, re-running on many existing questions (that I don't have now) is needed to make sure things work. It may not be a lot of work, but continuous participation is needed. A good candidate may be a user with programming background like what Jean-Michel did. I might be able to provide some supports for the things not related to the interface with Moodle question engine.
Hello Miro,
As I said in a previous message I am now retired. When I retired about a year ago, I was expecting that even if I don't use Moodle anymore I would be able to continue to maintain this plugin, but unfortunately it's a too big job to stay in touch with all Moodle evolutions. I am sad to report that most probably there will be no new version from me and I will put this plugin in the "seeking for adoption" list.
Dear Jean-Michel, I would be very glad if you would extended your plugin for the most recent Moodle.
If I can find some time I will install the latest Moodle release and install the formulas question type to see if I can reproduce the problem. It will remember me of "the good old time" when I was a teacher wink
Hello,
I am now retired and I don't even have a Moodle website with the formula question type installed, but what you says is very surprising to me because I have done tons of formulas questions with TeX formulas involving formulas variables with no problem because the calculations are done on the server before the webpage is served to the client and TeX rendering is done on the client side (I was using MathJax which is standard in latest Moodle versions) so I think the calculation is always done before TeX rendering
And even if you are not using the MathJax filter (for instance if you are using a filter where teX formulas are replaced by images) I think that unless Moodle code has changed a lot since I left Moodle development, any TeX filter will always modify the page content after the formulas questions has done all the calculations. So I am puzzled by your report.
Hi Jean Michel,
Thank you for this great question type.
One question that I could not solve: Is it possible to use the random variable system inside \TeX notation?
Example:
Random variables: A = {2,3,4,5}; B = {2,3,5}
Question Text: Simplify that radical: \( \sqrt{ {=A*A*B} } \)
Obviouly, \TeX is overriding the variable system function. Is there any way to have the calculation been done first?
Best, Wolfram
Hi Jean Michel,
It has been reported that there are some problems in the answer fields length, we have made some changes at css file and it seems to display correcty.
http://benedu2.net/styles.css
After making the changes you will need to clear caches at
Site administration>Development> Purge all caches
Hi Jean Michel,
Documentation page started at https://docs.moodle.org/28/en/Formulas_question_type . Please feel free to add or correct as needed.
Hi Jean-Michel. Thanks for sharing yet another excellent piece of work. I was able to successfully test the functionality of some
samples provided. Some notes collected during the code review:
Documentation on creating formulas question would really help. Hopefully it's something you can ask the users community to help
with. In the styles.css file, some CSS selectors might be defined more strictly to make sure they apply to the given question type
only. See core question types for some good examples of it (typically using appropriate .que prefix etc).
The variables.php defines some functions in the global PHP scope. It is generally considered as a bad practise due to eventual
collisions. You may wish to encapsulate those as static methods of some correctly prefixed/named class.
I am happy to see both moodle1 and moodle2 backup formats supported, as well as included unit tests. I am sure this question type
will soon find a solid user base. Good luck with maintaining it, and thanks for your patience with the review and approval process.
You are cleared to land now, welcome to the Plugins directory!
Hello
As part of my 60th birthday celebration I am (finally !) releasing a public version of the formulas question type that have been available for years on my Github repository.
It is quite difficult to rapidly get a grasp on this question type because creating new question require some experience, but you can get a first grasp of the possibilities by importing the samples/sample-formulas-questions.xml file in your question bank. Alos this plugin require version 3.3 of qbehaviour_adaptivemultipart but I don't know if I should mention that somewhere in the description. Last thing, can you create a component in the CONTRIB tracker for this plugin. Thanks.