
(/VERSIONCHECK 2) 

(DEFUN |RRCC-;zero?;ThePolsSB;1| (|toTest| |rootChar| $)
  (EQL (SPADCALL |toTest| |rootChar| (QREFELT $ 10)) 0)) 

(DEFUN |RRCC-;negative?;ThePolsSB;2| (|toTest| |rootChar| $)
  (< (SPADCALL |toTest| |rootChar| (QREFELT $ 10)) 0)) 

(DEFUN |RRCC-;positive?;ThePolsSB;3| (|toTest| |rootChar| $)
  (< 0 (SPADCALL |toTest| |rootChar| (QREFELT $ 10)))) 

(DEFUN |RRCC-;rootOf;ThePolsPiU;4| (|pol| |n| $)
  (PROG (|liste|)
    (RETURN
     (SEQ
      (LETT |liste| (SPADCALL |pol| (QREFELT $ 18))
            |RRCC-;rootOf;ThePolsPiU;4|)
      (EXIT
       (COND ((< |n| (LENGTH |liste|)) (CONS 1 "failed"))
             ('T (CONS 0 (SPADCALL |liste| |n| (QREFELT $ 20)))))))))) 

(DEFUN |RRCC-;recip;ThePolsSU;5| (|toInv| |rootChar| $)
  (PROG (|d| |defPol| #1=#:G11775 |res|)
    (RETURN
     (SEQ
      (COND
       ((EQL (SPADCALL |toInv| (QREFELT $ 25)) 0)
        (SEQ
         (LETT |res|
               (SPADCALL (SPADCALL |toInv| (QREFELT $ 26)) (QREFELT $ 27))
               . #2=(|RRCC-;recip;ThePolsSU;5|))
         (EXIT
          (COND ((QEQCAR |res| 1) (CONS 1 "failed"))
                (#3='T (CONS 0 (SPADCALL (QCDR |res|) (QREFELT $ 28))))))))
       (#3#
        (SEQ (LETT |defPol| (SPADCALL |rootChar| (QREFELT $ 29)) . #2#)
             (LETT |d| (SPADCALL (LIST |defPol| |toInv|) (QREFELT $ 31)) . #2#)
             (EXIT
              (COND
               ((SPADCALL (QCDR |d|) |rootChar| (QREFELT $ 32))
                (CONS 1 "failed"))
               (#3#
                (SEQ
                 (COND
                  ((NULL (EQL (SPADCALL (QCDR |d|) (QREFELT $ 25)) 0))
                   (SEQ
                    (LETT |defPol|
                          (PROG2
                              (LETT #1#
                                    (SPADCALL |defPol| (QCDR |d|)
                                              (QREFELT $ 33))
                                    . #2#)
                              (QCDR #1#)
                            (|check-union| (QEQCAR #1# 0) (QREFELT $ 8) #1#))
                          . #2#)
                    (EXIT
                     (LETT |d|
                           (SPADCALL (LIST |defPol| |toInv|) (QREFELT $ 31))
                           . #2#)))))
                 (EXIT
                  (CONS 0 (SPADCALL (QCAR |d|) 2 (QREFELT $ 35))))))))))))))) 

(DEFUN |RealRootCharacterizationCategory&| (|#1| |#2| |#3|)
  (PROG (|pv$| $ |dv$| DV$3 DV$2 DV$1)
    (RETURN
     (PROGN
      (LETT DV$1 (|devaluate| |#1|) . #1=(|RealRootCharacterizationCategory&|))
      (LETT DV$2 (|devaluate| |#2|) . #1#)
      (LETT DV$3 (|devaluate| |#3|) . #1#)
      (LETT |dv$| (LIST '|RealRootCharacterizationCategory&| DV$1 DV$2 DV$3)
            . #1#)
      (LETT $ (GETREFV 38) . #1#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #1#))
      (|stuffDomainSlots| $)
      (QSETREFV $ 6 |#1|)
      (QSETREFV $ 7 |#2|)
      (QSETREFV $ 8 |#3|)
      $)))) 

(MAKEPROP '|RealRootCharacterizationCategory&| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|local| |#2|)
              (|local| |#3|) (|Integer|) (0 . |sign|) (6 . |Zero|) (|Boolean|)
              |RRCC-;zero?;ThePolsSB;1| |RRCC-;negative?;ThePolsSB;2|
              (10 . |Zero|) |RRCC-;positive?;ThePolsSB;3| (|List| $)
              (14 . |allRootsOf|) (|List| 6) (19 . |elt|) (|Union| $ '"failed")
              (|PositiveInteger|) |RRCC-;rootOf;ThePolsPiU;4|
              (|NonNegativeInteger|) (25 . |degree|)
              (30 . |leadingCoefficient|) (35 . |recip|) (40 . |coerce|)
              (45 . |definingPolynomial|)
              (|Record| (|:| |coef| 17) (|:| |generator| $))
              (50 . |principalIdeal|) (55 . |zero?|) (61 . |exquo|) (|List| 8)
              (67 . |elt|) (|Union| 8 '"failed") |RRCC-;recip;ThePolsSU;5|)
           '#(|zero?| 73 |rootOf| 79 |recip| 85 |positive?| 91 |negative?| 97)
           'NIL
           (CONS (|makeByteWordVec2| 1 'NIL)
                 (CONS '#()
                       (CONS '#()
                             (|makeByteWordVec2| 37
                                                 '(2 6 9 8 0 10 0 7 0 11 0 8 0
                                                   15 1 6 17 8 18 2 19 6 0 9 20
                                                   1 8 24 0 25 1 8 7 0 26 1 7
                                                   21 0 27 1 8 0 7 28 1 6 8 0
                                                   29 1 8 30 17 31 2 6 12 8 0
                                                   32 2 8 21 0 0 33 2 34 8 0 9
                                                   35 2 0 12 8 0 13 2 0 21 8 22
                                                   23 2 0 36 8 0 37 2 0 12 8 0
                                                   16 2 0 12 8 0 14)))))
           '|lookupComplete|)) 
