Changeset 64e332 in git
- Timestamp:
- Jan 2, 2001, 3:33:25 PM (23 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- cda1ad905ad654f1520fe50c63f3628c521558b0
- Parents:
- d26ec4a0f775fcfff7451cee3447e193c11e4e28
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/jordan.lib
rd26ec4 r64e332 1 1 /////////////////////////////////////////////////////////////////////////////// 2 version="$Id: jordan.lib,v 1. 19 2000-12-22 14:09:44greuel Exp $";2 version="$Id: jordan.lib,v 1.20 2001-01-02 14:33:25 greuel Exp $"; 3 3 category="Linear Algebra"; 4 4 info=" … … 59 59 "USAGE: jordan(M[,opt]); M constant square matrix, opt integer 60 60 ASSUME: The eigenvalues of M are in the coefficient field. 61 RETURN: The procedure returns a list jd with 3 entries of type 62 ideal, list of intvecs, matrix with 63 jd[1] eigenvalues of M, 64 jd[2][i][j] size of j-th Jordan block with eigenvalue jd[1][i], and 65 jd[3]^(-1)*M*jd[3] in Jordan normal form. 61 RETURN: The procedure returns a list jd with 3 entries: 62 @format 63 - jd[1] ideal, eigenvalues of M, 64 - jd[2] list of intvecs, jd[2][i][j] size of j-th Jordan block with 65 eigenvalue jd[1][i], and 66 - jd[3] a matrix, jd[3]^(-1)*M*jd[3] in Jordan normal form. 66 67 Depending on opt, only certain entries of jd are computed. 67 If opt=-1, jd[1] is computed,68 if opt= 0, jd[1] and jd[2] are computed,69 if opt= 1, jd[1], jd[2], and jd[3] are computed, and,70 if opt= 2, jd[1] and jd[3] are computed.68 If opt=-1, jd[1] is computed, 69 if opt= 0, jd[1] and jd[2] are computed, 70 if opt= 1, jd[1], jd[2], and jd[3] are computed, and, 71 if opt= 2, jd[1] and jd[3] are computed. 71 72 By default, opt=0. 73 @end format 72 74 NOTE: A non constant polynomial matrix M is replaced by its constant part. 73 75 DISPLAY: The procedure displays comments if printlevel>=1. … … 400 402 proc jordanmatrix(list jd) 401 403 "USAGE: jordanmatrix(jd); jd list of ideal and list of intvecs 402 RETURN: The procedure returns the Jordan matrix J with eigenvalues jd[1] and 403 size jd[2][i][j] of j-th Jordan block with eigenvalue jd[1][i]. 404 RETURN: The procedure returns the Jordan matrix J, satisfying: 405 @* - eigenvalues of J are given by jd[1] 406 @* - j-th Jordan block of J with eigenvalue jd[1][i] has size jd[2][i][j] 404 407 DISPLAY: The procedure displays comments if printlevel>=1. 405 408 EXAMPLE: example jordanmatrix; shows an example. … … 492 495 "USAGE: jordanform(M); M constant square matrix 493 496 ASSUME: The eigenvalues of M are in the coefficient field. 494 RETURN: The procedure returnsthe Jordan normal form of M.497 RETURN: matrix, the Jordan normal form of M. 495 498 NOTE: A non constant polynomial matrix M is replaced by its constant part. 496 499 DISPLAY: The procedure displays more comments for higher printlevel. … … 523 526 else 524 527 { 525 print("//no square matrix");526 matrix[1][0]=invM;528 ERROR("// ** no square matrix"); 529 //matrix invM[1][0]; 527 530 } 528 531 return(invM);
Note: See TracChangeset
for help on using the changeset viewer.