
(SDEFUN |NREP;characteristicPolynomial;MP;1|
        ((|m| |Matrix| (|Fraction| (|Integer|)))
         ($ |Polynomial| (|Fraction| (|Integer|))))
        (SPROG ((|x| (|Symbol|)))
               (SEQ
                (LETT |x| (SPADCALL (QREFELT $ 8))
                      |NREP;characteristicPolynomial;MP;1|)
                (EXIT
                 (SPADCALL (SPADCALL |m| (QREFELT $ 12)) |x| (QREFELT $ 14)))))) 

(SDEFUN |NREP;characteristicPolynomial;MSP;2|
        ((A |Matrix| (|Fraction| (|Integer|))) (|x| |Symbol|)
         ($ |Polynomial| (|Fraction| (|Integer|))))
        (SPADCALL (SPADCALL A (QREFELT $ 12)) |x| (QREFELT $ 14))) 

(SDEFUN |NREP;realEigenvalues;MParL;3|
        ((|m| |Matrix| (|Fraction| (|Integer|))) (|eps| |Par|)
         ($ |List| |Par|))
        (SPADCALL (SPADCALL |m| (QREFELT $ 12)) |eps| (QREFELT $ 18))) 

(SDEFUN |NREP;realEigenvectors;MParL;4|
        ((|m| |Matrix| (|Fraction| (|Integer|))) (|eps| |Par|)
         ($ |List|
          (|Record| (|:| |outval| |Par|) (|:| |outmult| (|Integer|))
                    (|:| |outvect| (|List| (|Matrix| |Par|))))))
        (SPADCALL |m| |eps| (ELT $ 22) (QREFELT $ 26))) 

(DECLAIM (NOTINLINE |NumericRealEigenPackage;|)) 

(DEFUN |NumericRealEigenPackage| (#1=#:G658)
  (SPROG NIL
         (PROG (#2=#:G659)
           (RETURN
            (COND
             ((LETT #2#
                    (|lassocShiftWithFunction| (LIST (|devaluate| #1#))
                                               (HGET |$ConstructorCache|
                                                     '|NumericRealEigenPackage|)
                                               '|domainEqualList|)
                    . #3=(|NumericRealEigenPackage|))
              (|CDRwithIncrement| #2#))
             ('T
              (UNWIND-PROTECT
                  (PROG1 (|NumericRealEigenPackage;| #1#) (LETT #2# T . #3#))
                (COND
                 ((NOT #2#)
                  (HREM |$ConstructorCache| '|NumericRealEigenPackage|)))))))))) 

(DEFUN |NumericRealEigenPackage;| (|#1|)
  (SPROG ((|pv$| NIL) ($ NIL) (|dv$| NIL) (DV$1 NIL))
         (PROGN
          (LETT DV$1 (|devaluate| |#1|) . #1=(|NumericRealEigenPackage|))
          (LETT |dv$| (LIST '|NumericRealEigenPackage| DV$1) . #1#)
          (LETT $ (GETREFV 28) . #1#)
          (QSETREFV $ 0 |dv$|)
          (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #1#))
          (|haddProp| |$ConstructorCache| '|NumericRealEigenPackage|
                      (LIST DV$1) (CONS 1 $))
          (|stuffDomainSlots| $)
          (QSETREFV $ 6 |#1|)
          (SETF |pv$| (QREFELT $ 3))
          $))) 

(MAKEPROP '|NumericRealEigenPackage| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|Symbol|) (0 . |new|)
              (|SparseUnivariatePolynomial| (|Fraction| (|Integer|)))
              (|Matrix| (|Fraction| (|Integer|)))
              (|InnerNumericEigenPackage| (|Fraction| (|Integer|)) 6 6)
              (4 . |charpol|) (|Polynomial| (|Fraction| (|Integer|)))
              (9 . |multivariate|) |NREP;characteristicPolynomial;MP;1|
              |NREP;characteristicPolynomial;MSP;2| (|List| 6) (15 . |solve1|)
              |NREP;realEigenvalues;MParL;3| (|Factored| 9)
              (|GenUFactorize| (|Fraction| (|Integer|))) (21 . |factor|)
              (|Record| (|:| |outval| 6) (|:| |outmult| (|Integer|))
                        (|:| |outvect| (|List| (|Matrix| 6))))
              (|List| 23) (|Mapping| 20 9) (26 . |innerEigenvectors|)
              |NREP;realEigenvectors;MParL;4|)
           '#(|realEigenvectors| 33 |realEigenvalues| 39
              |characteristicPolynomial| 45)
           'NIL
           (CONS (|makeByteWordVec2| 1 'NIL)
                 (CONS '#()
                       (CONS '#()
                             (|makeByteWordVec2| 27
                                                 '(0 7 0 8 1 11 9 10 12 2 13 0
                                                   9 7 14 2 11 17 9 6 18 1 21
                                                   20 9 22 3 11 24 10 6 25 26 2
                                                   0 24 10 6 27 2 0 17 10 6 19
                                                   2 0 13 10 7 16 1 0 13 10
                                                   15)))))
           '|lookupComplete|)) 
