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".
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+';
$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.