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

Algebra Calculator

#### Ratfac

-- Option variable: ratfac Default value: false

When ratfac is true, canonical rational expressions (CRE) are manipulated in a partially factored form.

During rational operations the expression is maintained as fully factored as possible without calling factor. This should always save space and may save time in some computations. The numerator and denominator are made relatively prime, for example rat ((x^2 - 1)^4/(x + 1)^2) yields (x - 1)^4 (x + 1)^2), but the factors within each part may not be relatively prime.

In the ctensr (Component Tensor Manipulation) package, Ricci, Einstein, Riemann, and Weyl tensors and the scalar curvature are factored automatically when ratfac is true. ratfac should only be set for cases where the tensorial components are known to consist of few terms.

The ratfac and ratweight schemes are incompatible and may not both be used at the same time.

(%o1)                                true
(%i2)

ratfac:true;

p[0]:rat(x);

q[0]:1;

Calculate

? ratfac;

Calculate

ratfac:true;

p[0]:rat(x);

q[0]:1;

Calculate

? ratfac;

Calculate