Moodle Plugins directory: Algebra | Moodle.org
Algebra
Question types ::: qtype_algebra
Maintained by
Jean-Michel Védrine
Question type where the student must answer by typing an algebra formula. Correctness can be checked by three different methods.
Latest release:
604 sites
146 downloads
30 fans
Current versions available: 5
MOODLE ALGEBRA QUESTION TYPE
Created by Roger Moore
Algebra based question type for Moodle.
This plugin implements an algebraic question type where student responses are treated as an algebraic expression and compared to instructor provided answers using the basic rules of algebra.
Contributors
Jean-Michel Védrine (Lead maintainer)
Roger Moore: Original Author
Please login to view contributors details and/or to contact them
Since the upgrade to moodle 3,0 , we get the same error message as Bernhard Piazzi (above) so that most algebra questions won't work any more on our site:
As soon as there is a parenthesis in the answer of the student (example 8*(4x−3) ) we get this error message:
"Notice: Undefined property: qtype_algebra_parser_bracket::$_sign in /var/www/moodle-3.1.1plus/question/type/algebra/parser.php on line 896" (or sometimes "line 1339")
If somebody came accross this same problem and were able to solve it, could you please help me ?
We have no moodle developper on our site and without your help our hundreds of algebra questions are just going to get lost !
Many thanks in advance!
Sophie
a friend helped me with the above problem
(Notice: Undefined property: qtype_algebra_parser_bracket::$_sign in /var/www/moodle-3.1.1plus/question/type/algebra/parser.php on line 896" (or sometimes "line 1339"))
I'll try to translate the solution:
A variable was not initialized ($_sign) in the constructor of the class qtype_algebra_parser_bracket.
To correct this you have to modify the file : question/type/algebra/parser.php (line 1309) and add an initializing line :
function qtype_algebra_parser_bracket($text) {
parent::qtype_algebra_parser_term(self::NARGS,self::$formats[$text],$text);
$this->_sign=''; // line added
$this->_open=$text;
I hope it helps if you come accross the same problem.
Sophie
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; qtype_algebra_parser_term has a deprecated constructor in ....... /question/type/algebra/parser.php on line 53
I would like to get my students to answer the question with a simplified answer. The easiest way would be to limit the length of their answer. Is there a way to do this?
Bernhard
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; qtype_algebra_parser_term has a deprecated constructor in
..\server\moodle\question\type\algebra\parser.php on line 53
Is there any chance qtype_algebra will receive an update to support recent moodle versions like 3.3?
In my php7/moodle3.3 installation i get lots of warnings in my webserver log about PHP deprecation issues, plus periodic 502's, especially checking answers or "trying again"...
I am now retired and I stopped all Moodle activities. This plugin is now seeking for a new maintainer.
I just wanted to report a bug to the new or future maintainer.
I noticed that we cannot accede the statistics of any test including algebra questions. Indeed, once a student have typed a formula to answer an algebra question, the statistics page will turn white (such as the bug report). This occurs even if the students make no syntactic mistake. On the contrary, if all the students type "0" instead of the formulas, the statistics will normally be displayed.
The problem may be due to the fact we are using a 3.3 version of Moodle and the algebra plugin we installed is made for 2.8, 2.9 and 3.0 versions of Moodle (but except for the statistics, it works perfectly with our 3.3 version).
Anyway, I just wanted to report.
Regards
--
Camille
Despite been retired I was puzzled by the bug reported by Camille Carlier. So I decided to fix it.
I will release a new version that will fix this bug, and also the problem related to deprecated constructors names and the problem about undefined property $_sign.
But please don't take this as a commitment to further maintain that plugin
Thank you very much for your intervention despite you have retired. All work just fine now.
Happy holidays
--
Camille
Thanks for this great plugin. It's very useful for me. The only thing is that right now it's possible to have only one answer. Is it possible to have multiple answer boxes? thanks again.