getNum takes as argument a rational fraction
and returns the numerator of this fraction. Unlike numer,
getNum does not simplify the fraction before extracting
the numerator.
Input :
^
2-1)/(x-1)) Output :
^
2-1Input :
^
2+2*x+1)/(x^
2-1)) Output :
^
2+2*x+1