NUM INDEX

NUM _ _ _ _ _ _ _ _ _ _ _ _ operator

The num operator returns the numerator of its argument.

syntax:

num(<expression>) or num <simple\_expression>

<expression> can be any valid REDUCE scalar expression.

examples:


num(100/6); 

  50 


num(a/5 + b/6); 

  6*A + 5*B 


num(sin(x)); 

  SIN(X)

numreturns the numerator of the expression after it has b een simplified by REDUCE. As seen in the examples, this includes putting sums of rational expressions over a common denominator, and reducing common factors where possible. If the expression is not a rational expression, it is returned unchanged.