pvecto
C PVECTO SOURCE CB215821 16/04/21 21:18:09 8920 c--------------------------------------------------------------------- c c c===================================================================== c = c This routine calculates one eigenvector. = c = c Input: xl eigenvalue = c s (6) original matrix = c Output: v (3) eigenvector = c = c Note: s = (Sxx, Syy, Szz, Sxy, Sxz, Syz) = c = c===================================================================== IMPLICIT INTEGER(I-N) real*8 s (6), v (3), xl, com c c data tol / 1.0 d-07 / c x1 = s (1) - xl x2 = s (2) - xl x3 = s (3) - xl x4 = s (4) x5 = s (6) x6 = s (5) c v1 = (x4 * x5 - x6 * x2) * deti v2 = (x6 * x4 - x5 * x1) * deti xn = 1.0 d0 / SQRT(v1**2+v2**2+1.0d0) v (1) = v1 * xn v (2) = v2 * xn v (3) = xn return end if c xn = 1.0 d0 / SQRT(v1**2+1.0d0) v (1) = xn v (2) = v1 * xn v (3) = 0.0 d0 return end if c v (1) = 0.0 d0 v (2) = 1.0 d0 v (3) = 0.0 d0 return end if c xn = 1.0 d0 / SQRT(v1**2+1.0d0) v (1) = v1 * xn v (2) = xn v (3) = 0.0 d0 return end if c v (1) = 1.0 d0 v (2) = 0.0 d0 v (3) = 0.0 d0 return end if c v (1) = 0.0 d0 v (2) = 1.0 d0 v (3) = 0.0 d0 c end
© Cast3M 2003 - Tous droits réservés.
Mentions légales