We have added two commands to Efofex Parameters that allow you to create algebraic questions with less hassle.
Often, you will want to create a question that operates with both positive and negative numbers, but you need to exclude 0 and maybe 1 and -1. For example you might want to create a question where the parameter is the used as the denominator of a fraction and need to exclude zero.
The RangeEx and PrimeEx commands allow you to create sets of possibilities that satisfy this need.
For example:
$p=rangeex(2,5) will select a value for $p from the set of values {-5, -4, -3, -2, 2, 3, 4, 5}
Notice that the numbers from 2 to 5 are included as well as the associated negative values. The values -1, 0 and 1 are excluded from the list.
The PrimeEx command operates in exactly the same way but is limited to prime numbers and their negatives.
$p=primeex(2,10) will select a value for $p from the set of values {-7, -5, -3, -2, 2, 3, 5, 7}
Discover more from Efofex News
Subscribe to get the latest posts sent to your email.