The standard view of this forum does not always work well with assistive technology. We also provide a simpler view, which still contains all features. Switch to simple view.

Albert Gomez Post 1

12 June 2015, 6:06 AM Edited by the author on 12 June 2015, 6:18 AM

Big wild cards first

It seems trivial at first. You want to do a simple primary school subtraction, and of course you need two non-negative integers: a minuend on top and a subtrahend below. You may use two wild cards for doing this, namely {a} and {b}. The problem is the first number {a} must always be greater than or equal to the second {b}. How can we do this when writing the question in the Question Text box?

Can moodle support the Calculator package for Latex? I've tried using it with the following syntax, but aparently, it doesn't work.

\;\;\;\;\;\;\;\; \frac{ \begin{array}{r} \MAX{a}{b}{\solution}  \\  -\;\; \MIN{a}{b}{\solution}  \end{array}  \hline  
   _________

I've also tried to set the Range of Values of number {b} to go from 0 to {a}, for example, but it doesn't seem to work either.

Thanks.

Tim Hunt Post 2 (summarised) in reply to 1

2 July 2015, 11:24 PM
A better option is to randomly generate {b} and {c}, then compute {a} = {b} +...
 [Expand all posts]

Albert Gomez Post 3 (summarised) in reply to 2

12 June 2016, 5:53 AM Edited by the author on 12 June 2016, 5:53 AM

Subtraction problem

 Thanks, Tim, for your answer. (Sorry to have taken so...
 [Expand all posts]

Tim Hunt Post 4 (summarised) in reply to 3

13 June 2016, 11:41 AM
Sorry, i did not write the right syntax. See diagram 2.9 in http://www.open....
 [Expand all posts]