Posts made by Visvanath Ratnaweera

Picture of Particularly helpful Moodlers Picture of Translators
Too good to be true! "abs(a*x + b - c)"

I don't understand Formulas enough to follow where "abs(a*x + b - c)" is compared with zero, and whether they are the user inputs or the Formulas generated values.

On top of that there must be something wrong with my Formulas version. Just like with Joachim's solution, I always get "Wrong answer".



Moodle 4.1.6.
$plugin->version = 2023080900;

$plugin->cron = 0;
$plugin->requires = 2017111300;
$plugin->dependencies = array(
    'qbehaviour_adaptive' => 2015111600,
    'qbehaviour_adaptivemultipart' => 2014092500,
    'qtype_multichoice' => 2015111600,
);
$plugin->supported = [39, 402];
$plugin->release = '5.2.2 for Moodle 3.9+';

Your dynamiccourseware.org version works as expected.

Before we go deeper, I must say that this feature is not high priority for me. But believe worth following for the others. In my case, which you also know, we are taking some random past papers (yes, paper) from secondary schools and trying to convert them to on-line. And we don't expect an analog to digital conversion one-to-one. We know very well that some modifications are necessary.

Picture of Particularly helpful Moodlers Picture of Translators
Ooh, many thanks, xml file included.

I was wondering how Formulas handle variable "symbols", the numerical approach is bold!

Two answers on either side of an equal sign is perfectly OK. The students are taught to have the "unknown" on the left hand side, no problem of changing sides.
wink

I am studying you solution. It didn't work as it is. Here is a sample:

Attachment form.png
Picture of Particularly helpful Moodlers Picture of Translators
Let me guess... you saw it in the Internet, right?

big grin Never heard of the F... news?

No, seriously. The first thing you should have done is to post that link here and ask whether it is true.

Even better, forget that G... too and start your journey right here, at https://docs.moodle.org/ asking https://moodle.org/mod/forum/search.php?id=5.
sad

Picture of Particularly helpful Moodlers Picture of Translators
I was going to say, there are people at Moodle HQ who would answer the Moodle part usually in the Developer forum. But virtually nobody from Totara is here. Then Mary brought a new angle to the Totara front. Either way, I am out, IANAL.