Hello,

Formula math Q.: Student choose > but what is shown is <

Question no. 3 in the attached xml file

Moodle 3.7

Hello,

Formula math Q.: Student choose > but what is shown is <

Question no. 3 in the attached xml file

Moodle 3.7

The incorrect Feedback box has "\( {a} > {b} \)" Therefore that is what is shown on the screen.

REL=[lt, eq, gt];

res=2;

You have designated the answer to be index 2 of the array. Arrays start with 0 as the index, therefore

REL[0] = lt

REL[1]=eq

REL[2]=gt

I hope that helps.

REL=[lt, eq, gt];

res=2;

You have designated the answer to be index 2 of the array. Arrays start with 0 as the index, therefore

REL[0] = lt

REL[1]=eq

REL[2]=gt

I hope that helps.

Hello Ahmad,

You will find attached your question as I think you want it.

Dominique, can you please explain what this statement means. I have seen it a few times, but I am not understanding it.

Thank you,

Wendy

a={-19:0,1:20};

Thank you,

Wendy

a={-19:0,1:20};

This means a set of numbers including numbers from -19 to -1 and from 1 to 19. Note that the last numbers, 0 and 20, in the two ranges 19:0 and 1:20 is not included (it is never included). In other words, this is a short notation for {-19,-18,-17,-16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19},
that is, all integers from -19 to +19 excluding 0. I excluded 0 just because I thought maybe that was what the OP wanted.

For more details, see **https://moodleformulas.org/course/view.php?id=22§ion=19 ↗**.

Thank you Dominique.

Thank you Wendy.

Thank you Wendy.

Thanks Domonique. Your support is appreciated.

What do you think of the following (another question)? Is it done as should be?