### The Maxima on-line user's manual

Algebra Calculator

#### Ratnumer

Function: ratnumer (<expr>) Returns the numerator of <expr>, after coercing <expr> to a canonical rational expression (CRE). The return value is a CRE.

<expr> is coerced to a CRE by `rat` if it is not already a CRE. This conversion may change the form of <expr> by putting all terms over a common denominator.

`num` is similar, but returns an ordinary expression instead of a CRE. Also, `num` does not attempt to place all terms over a common denominator, and thus some expressions which are considered ratios by `ratnumer` are not considered ratios by `num`.

```(%o1)                                true
(%i2) ```

### Related Examples

ratnumer(0.5);

Calculate

? ratnumer;

Calculate

##### ratnumer-solve

H1(z):=((z-2/3)*(z+3/...

l:solve(ratnumer(H1(z...

nu;

Calculate

ratnumer(0.5);

ratnumer(1.7);

Calculate

ratnumer(0.5);

Calculate

? ratnumer;

Calculate

##### ratnumer-solve

H1(z):=((z-2/3)*(z+3/...

l:solve(ratnumer(H1(z...

nu;

Calculate

ratnumer(0.5);

ratnumer(1.7);

Calculate