1.4.1 'rk_ratmat'
-----------------

rk_ratmat(RK45,NUM,DEN,X0,X1,S,F0)
     solves a system of linear ODEs with rational function coefficients.

RETURN
     A list of real numbers.
RK45
     4 or 5.
NUM
     An array of constant matrices.
DEN
     A polynomial.
X0, X1
     Real numbers.
S
     A natural number.
F0
     A real vector.

   * Let K be the size of an array NUM.  The function 'rk_ratmat' solves
     an initial value problem DF/DX = P(X)F, F(X0)=F0 for
     P(X)=1/DEN(NUM[0]+NUM[1]X+...+NUM[K-1]X^(K-1)) by a Runge-Kutta
     method.
   * RK45 specifies the order of a Runge-Kutta method.  Adaptive methods
     are not implemented.
   * The step size is specified by S.  The step width is (X1-X0)/S.
   * If the size of F0 is N, each component of NUM is a square matrix of
     size N.
   * The result is a list of real numbers [R1,...,RS] of length S.  RI
     is the 0-th component of the solution vector after the step I.
     Before going to the next step the solution vector is divided by RI.
     Therefore the 0-th component of the final solution vector [varF(x1)
     is equal to RS*R(S-1)*...*R1.
   * Since the ODE is linear, each step of Runge-Kutta method is also
     linear.  This enables us to apply a normalization such that the
     0-th component of each intermediate solution vector is set to 1.
     By applying this normalization we expect that all the components of
     intermediate solution vectors can be represented by the format of
     double precision floating point number.  If there exist some
     components which cannot be represented by the format of double
     precision floating point number in the initial vector F0, we apply
     this normalization to F0.  After applying 'rk_ratmat' we multiply
     the result for the normalized F0 and the 0-th component of the
     original F0 to get the desired result.

     [...] F=ltov([sin(1/x),cos(1/x),sin(1/x^2),cos(1/x^2)]);
     [ sin((1)/(x)) cos((1)/(x)) sin((1)/(x^2)) cos((1)/(x^2)) ]
     [...] F0=map(eval,map(subst,F,x,1/10));
     [ -0.54402111088937 -0.839071529076452 -0.506365641109759 0.862318872287684 ]
     [...] N0=matrix(4,4,[[0,0,0,0],[0,0,0,0],[0,0,0,-2],[0,0,2,0]])$
     [...] N1=matrix(4,4,[[0,-1,0,0],[1,0,0,0],[0,0,0,0],[0,0,0,0]])$
     [...] N=ltov([N0,N1])$
     [...] D=x^3$
     [...] R=rk_ratmat(5,N,D,1/10,10,10^4,F0)$
     [...] for(T=R,A=1;T!=[];T=cdr(T))A *=car(T)[1];
     [...] A;
     0.0998334
     [...] F1=map(eval,map(subst,F,x,10));
     [ 0.0998334166468282 0.995004165278026 0.00999983333416666 0.999950000416665 ]

