home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / SPECMAT.DI$ / ROSSER.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  1.0 KB  |  25 lines

  1. function R = rosser();
  2. %ROSSER    A classic symmetric eigenvalue test problem.
  3. %    This matrix was a challenge for many matrix eigenvalue algorithms.
  4. %    But the Francis QR algorithm, as perfected by Wilkinson and 
  5. %    implemented in EISPACK and MATLAB has no trouble with it.
  6. %    The matrix is 8-by-8 with integer elements.
  7. %    It has:
  8. %        * A double eigenvalue.
  9. %        * Three nearly equal eigenvalues.
  10. %        * Dominant eigenvalues of opposite sign.
  11. %        * A zero eigenvalue.
  12. %        * A small, nonzero eigenvalue.
  13.  
  14. %    C. Moler, 6-22-91.
  15. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  16.  
  17. R  = [ 611.  196. -192.  407.   -8.  -52.  -49.   29.
  18.        196.  899.  113. -192.  -71.  -43.   -8.  -44.
  19.       -192.  113.  899.  196.   61.   49.    8.   52.
  20.        407. -192.  196.  611.    8.   44.   59.  -23.
  21.         -8.  -71.   61.    8.  411. -599.  208.  208.
  22.        -52.  -43.   49.   44. -599.  411.  208.  208.
  23.        -49.   -8.    8.   59.  208.  208.   99. -911.
  24.         29.  -44.   52.  -23.  208.  208. -911.   99.];
  25.