Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Ratfac

-- Option variable: ratfac Default value: false

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

/*  Schwarzschild simplesave as name.macLoad from the file menu - > File|Batch file*/kill(all);
load(ctensor);
/* set some flags */cframe_flag: false;
ratchristof: true;
ratriemann : true;
ratfac : true;
ctrgsimp: true;
/* define the dimension */dim: 2;
/* list the coordinates */ct_coords: [theta,phi];
/* set up the metric *//* assign to lg a matrix of zeros

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) 

Related Examples

ratfac-resultant-true

ratfac:true;

p[0]:rat(x);

q[0]:1;

Calculate

ratfac-resultant-true

ratfac:true;

p[0]:rat(x);

q[0]:1;

Calculate