randVar() randFromArray(["-", "+"])
new Term(randRangeNonZero(-10, 10), X) new Term(randRangeNonZero(-10, 10), X) SIGN === "+" ? new Term(NUMERATOR1.coefficient + NUMERATOR2.coefficient, X) : new Term(NUMERATOR1.coefficient - NUMERATOR2.coefficient, X)
randRangeNonZero(2, 10) getGCD(NUMERATORSUM.coefficient, DENOMINATOR) NUMERATORSUM.divide(FACTOR) DENOMINATOR / FACTOR
(NUMERSOL.toString())/(DENOMSOL.toString())
randRangeNonZero(-10, 10) randRangeNonZero(-10, 10) SIGN === "+" ? NUMERATOR1 + NUMERATOR2 : NUMERATOR1 - NUMERATOR2
new Term(randRange(1, 10), X) getGCD(NUMERATORSUM, DENOMINATOR.coefficient) NUMERATORSUM / FACTOR DENOMINATOR.divide(FACTOR)
(NUMERSOL.toString())/(DENOMSOL.toString())

Simplify the following expression:

`\dfrac{NUMERATOR1}{DENOMINATOR}SIGN \dfrac{NUMERATOR2}{DENOMINATOR}`

Since the expressions have the same denominator we simply combine the numerators:

`\dfrac{NUMERATOR1 SIGN NUMERATOR2}{DENOMINATOR}`

`\dfrac{NUMERATOR1 SIGN (NUMERATOR2)}{DENOMINATOR}`

Combine like terms:

`\dfrac{NUMERATORSUM}{DENOMINATOR}`

Simplify by dividing numerator and denominator by `FACTOR`:

`NUMERSOL`

`\dfrac{NUMERSOL}{DENOMSOL}`