
(/VERSIONCHECK 2) 

(DEFUN |REAL0;negate| (|int| $)
  (CONS (SPADCALL (QCDR |int|) (QREFELT $ 8))
        (SPADCALL (QCAR |int|) (QREFELT $ 8)))) 

(DEFUN |REAL0;midpoint;RF;2| (|i| $)
  (SPADCALL (SPADCALL 1 2 (QREFELT $ 12))
            (SPADCALL (QCAR |i|) (QCDR |i|) (QREFELT $ 13)) (QREFELT $ 14))) 

(DEFUN |REAL0;midpoints;LL;3| (|li| $)
  (PROG (#1=#:G1819 |x| #2=#:G1818)
    (RETURN
     (SEQ
      (PROGN
       (LETT #2# NIL . #3=(|REAL0;midpoints;LL;3|))
       (SEQ (LETT |x| NIL . #3#) (LETT #1# |li| . #3#) G190
            (COND
             ((OR (ATOM #1#) (PROGN (LETT |x| (CAR #1#) . #3#) NIL))
              (GO G191)))
            (SEQ
             (EXIT (LETT #2# (CONS (SPADCALL |x| (QREFELT $ 16)) #2#) . #3#)))
            (LETT #1# (CDR #1#) . #3#) (GO G190) G191
            (EXIT (NREVERSE #2#)))))))) 

(DEFUN |REAL0;makeSqfr| (F $)
  (PROG (#1=#:G1831 #2=#:G1830 #3=#:G1832 #4=#:G1835 |s| |sqfr|)
    (RETURN
     (SEQ (LETT |sqfr| (SPADCALL F (QREFELT $ 21)) . #5=(|REAL0;makeSqfr|))
          (EXIT
           (LETT F
                 (PROGN
                  (LETT #1# NIL . #5#)
                  (SEQ (LETT |s| NIL . #5#)
                       (LETT #4# (SPADCALL |sqfr| (QREFELT $ 25)) . #5#) G190
                       (COND
                        ((OR (ATOM #4#) (PROGN (LETT |s| (CAR #4#) . #5#) NIL))
                         (GO G191)))
                       (SEQ
                        (EXIT
                         (PROGN
                          (LETT #3# (QCAR |s|) . #5#)
                          (COND
                           (#1#
                            (LETT #2# (SPADCALL #2# #3# (QREFELT $ 26)) . #5#))
                           ('T
                            (PROGN
                             (LETT #2# #3# . #5#)
                             (LETT #1# 'T . #5#)))))))
                       (LETT #4# (CDR #4#) . #5#) (GO G190) G191 (EXIT NIL))
                  (COND (#1# #2#) ('T (|spadConstant| $ 9))))
                 . #5#)))))) 

(DEFUN |REAL0;realZeros;PolL;5| (F $)
  (|REAL0;ReZeroSqfr| (|REAL0;makeSqfr| F $) $)) 

(DEFUN |REAL0;realZeros;PolFL;6| (F |rn| $)
  (PROG (#1=#:G1841 |int| #2=#:G1840)
    (RETURN
     (SEQ (LETT F (|REAL0;makeSqfr| F $) . #3=(|REAL0;realZeros;PolFL;6|))
          (EXIT
           (PROGN
            (LETT #2# NIL . #3#)
            (SEQ (LETT |int| NIL . #3#)
                 (LETT #1# (|REAL0;ReZeroSqfr| F $) . #3#) G190
                 (COND
                  ((OR (ATOM #1#) (PROGN (LETT |int| (CAR #1#) . #3#) NIL))
                   (GO G191)))
                 (SEQ
                  (EXIT
                   (LETT #2# (CONS (SPADCALL F |int| |rn| (QREFELT $ 28)) #2#)
                         . #3#)))
                 (LETT #1# (CDR #1#) . #3#) (GO G190) G191
                 (EXIT (NREVERSE #2#))))))))) 

(DEFUN |REAL0;realZeros;PolRL;7| (F |bounds| $)
  (PROG (#1=#:G1843 |rint| #2=#:G1849 |int| #3=#:G1848)
    (RETURN
     (SEQ (LETT F (|REAL0;makeSqfr| F $) . #4=(|REAL0;realZeros;PolRL;7|))
          (EXIT
           (PROGN
            (LETT #3# NIL . #4#)
            (SEQ (LETT |int| NIL . #4#)
                 (LETT #2# (|REAL0;ReZeroSqfr| F $) . #4#) G190
                 (COND
                  ((OR (ATOM #2#) (PROGN (LETT |int| (CAR #2#) . #4#) NIL))
                   (GO G191)))
                 (SEQ
                  (EXIT
                   (COND
                    ((QEQCAR
                      (LETT |rint| (SPADCALL F |int| |bounds| (QREFELT $ 31))
                            . #4#)
                      0)
                     (LETT #3#
                           (CONS
                            (PROG2
                                (LETT #1# |rint| . #4#)
                                (QCDR #1#)
                              (|check-union| (QEQCAR #1# 0)
                                             (|Record|
                                              (|:| |left|
                                                   (|Fraction| (|Integer|)))
                                              (|:| |right|
                                                   (|Fraction| (|Integer|))))
                                             #1#))
                            #3#)
                           . #4#)))))
                 (LETT #2# (CDR #2#) . #4#) (GO G190) G191
                 (EXIT (NREVERSE #3#))))))))) 

(DEFUN |REAL0;realZeros;PolRFL;8| (F |bounds| |rn| $)
  (PROG (#1=#:G1854 |int| #2=#:G1853)
    (RETURN
     (SEQ (LETT F (|REAL0;makeSqfr| F $) . #3=(|REAL0;realZeros;PolRFL;8|))
          (EXIT
           (PROGN
            (LETT #2# NIL . #3#)
            (SEQ (LETT |int| NIL . #3#)
                 (LETT #1# (SPADCALL F |bounds| (QREFELT $ 32)) . #3#) G190
                 (COND
                  ((OR (ATOM #1#) (PROGN (LETT |int| (CAR #1#) . #3#) NIL))
                   (GO G191)))
                 (SEQ
                  (EXIT
                   (LETT #2# (CONS (SPADCALL F |int| |rn| (QREFELT $ 28)) #2#)
                         . #3#)))
                 (LETT #1# (CDR #1#) . #3#) (GO G190) G191
                 (EXIT (NREVERSE #2#))))))))) 

(DEFUN |REAL0;ReZeroSqfr| (F $)
  (PROG (K J #1=#:G1869 |int| #2=#:G1868 |tempF| L |r|)
    (RETURN
     (SEQ
      (COND
       ((SPADCALL F (|spadConstant| $ 34) (QREFELT $ 36))
        (|error| "ReZeroSqfr: zero polynomial"))
       (#3='T
        (SEQ (LETT L NIL . #4=(|REAL0;ReZeroSqfr|))
             (EXIT
              (COND ((EQL (SPADCALL F (QREFELT $ 38)) 0) L)
                    (#3#
                     (SEQ
                      (SEQ (LETT |r| (SPADCALL F (QREFELT $ 39)) . #4#)
                           (EXIT
                            (COND
                             ((SPADCALL |r| 0 (QREFELT $ 40))
                              (SEQ
                               (LETT L
                                     (LIST
                                      (CONS (|spadConstant| $ 41)
                                            (|spadConstant| $ 41)))
                                     . #4#)
                               (LETT |tempF|
                                     (SPADCALL F
                                               (SPADCALL 1 |r| (QREFELT $ 42))
                                               (QREFELT $ 44))
                                     . #4#)
                               (EXIT
                                (COND
                                 ((NULL (QEQCAR |tempF| 1))
                                  (LETT F (QCDR |tempF|) . #4#)))))))))
                      (LETT J
                            (PROGN
                             (LETT #2# NIL . #4#)
                             (SEQ (LETT |int| NIL . #4#)
                                  (LETT #1#
                                        (REVERSE
                                         (|REAL0;PosZero| (|REAL0;minus| F $)
                                          $))
                                        . #4#)
                                  G190
                                  (COND
                                   ((OR (ATOM #1#)
                                        (PROGN
                                         (LETT |int| (CAR #1#) . #4#)
                                         NIL))
                                    (GO G191)))
                                  (SEQ
                                   (EXIT
                                    (LETT #2#
                                          (CONS (|REAL0;negate| |int| $) #2#)
                                          . #4#)))
                                  (LETT #1# (CDR #1#) . #4#) (GO G190) G191
                                  (EXIT (NREVERSE #2#))))
                            . #4#)
                      (LETT K (|REAL0;PosZero| F $) . #4#)
                      (EXIT (APPEND (APPEND J L) K))))))))))))) 

(DEFUN |REAL0;PosZero| (F $)
  (PROG (L #1=#:G1874 |int| #2=#:G1873 |b|)
    (RETURN
     (SEQ (LETT |b| (|REAL0;rootBound| F $) . #3=(|REAL0;PosZero|))
          (LETT F (|REAL0;transMult| |b| F $) . #3#)
          (LETT L (|REAL0;Zero1| F $) . #3#)
          (EXIT
           (LETT L
                 (PROGN
                  (LETT #2# NIL . #3#)
                  (SEQ (LETT |int| NIL . #3#) (LETT #1# L . #3#) G190
                       (COND
                        ((OR (ATOM #1#)
                             (PROGN (LETT |int| (CAR #1#) . #3#) NIL))
                         (GO G191)))
                       (SEQ
                        (EXIT
                         (LETT #2#
                               (CONS
                                (CONS
                                 (SPADCALL |b| (QCAR |int|) (QREFELT $ 45))
                                 (SPADCALL |b| (QCDR |int|) (QREFELT $ 45)))
                                #2#)
                               . #3#)))
                       (LETT #1# (CDR #1#) . #3#) (GO G190) G191
                       (EXIT (NREVERSE #2#))))
                 . #3#)))))) 

(DEFUN |REAL0;Zero1| (F $)
  (PROG (K #1=#:G1888 |int| #2=#:G1887 J #3=#:G1886 #4=#:G1885 G |tempG| Q H
         |tempH| L |v|)
    (RETURN
     (SEQ (LETT L NIL . #5=(|REAL0;Zero1|))
          (LETT |v| (|REAL0;var| (|REAL0;transAdd1| (|REAL0;invert| F $) $) $)
                . #5#)
          (EXIT
           (COND ((EQL |v| 0) NIL)
                 ((EQL |v| 1)
                  (LETT L
                        (LIST
                         (CONS (|spadConstant| $ 41) (|spadConstant| $ 10)))
                        . #5#))
                 ('T
                  (SEQ (LETT G (|REAL0;transMultInv| 2 F $) . #5#)
                       (LETT H (|REAL0;transAdd1| G $) . #5#)
                       (COND
                        ((SPADCALL (SPADCALL H (QREFELT $ 39)) 0
                                   (QREFELT $ 46))
                         (SEQ
                          (LETT L
                                (LIST
                                 (CONS (SPADCALL 1 2 (QREFELT $ 12))
                                       (SPADCALL 1 2 (QREFELT $ 12))))
                                . #5#)
                          (LETT Q (SPADCALL 1 1 (QREFELT $ 42)) . #5#)
                          (LETT |tempH| (SPADCALL H Q (QREFELT $ 44)) . #5#)
                          (COND
                           ((NULL (QEQCAR |tempH| 1))
                            (LETT H (QCDR |tempH|) . #5#)))
                          (LETT Q
                                (SPADCALL Q (SPADCALL -1 0 (QREFELT $ 42))
                                          (QREFELT $ 47))
                                . #5#)
                          (LETT |tempG| (SPADCALL G Q (QREFELT $ 44)) . #5#)
                          (EXIT
                           (COND
                            ((NULL (QEQCAR |tempG| 1))
                             (LETT G (QCDR |tempG|) . #5#)))))))
                       (LETT J
                             (PROGN
                              (LETT #4# NIL . #5#)
                              (SEQ (LETT |int| NIL . #5#)
                                   (LETT #3# (|REAL0;Zero1| H $) . #5#) G190
                                   (COND
                                    ((OR (ATOM #3#)
                                         (PROGN
                                          (LETT |int| (CAR #3#) . #5#)
                                          NIL))
                                     (GO G191)))
                                   (SEQ
                                    (EXIT
                                     (LETT #4#
                                           (CONS
                                            (CONS
                                             (SPADCALL
                                              (SPADCALL (QCAR |int|)
                                                        (|spadConstant| $ 10)
                                                        (QREFELT $ 13))
                                              (SPADCALL 1 2 (QREFELT $ 12))
                                              (QREFELT $ 14))
                                             (SPADCALL
                                              (SPADCALL (QCDR |int|)
                                                        (|spadConstant| $ 10)
                                                        (QREFELT $ 13))
                                              (SPADCALL 1 2 (QREFELT $ 12))
                                              (QREFELT $ 14)))
                                            #4#)
                                           . #5#)))
                                   (LETT #3# (CDR #3#) . #5#) (GO G190) G191
                                   (EXIT (NREVERSE #4#))))
                             . #5#)
                       (LETT K
                             (PROGN
                              (LETT #2# NIL . #5#)
                              (SEQ (LETT |int| NIL . #5#)
                                   (LETT #1# (|REAL0;Zero1| G $) . #5#) G190
                                   (COND
                                    ((OR (ATOM #1#)
                                         (PROGN
                                          (LETT |int| (CAR #1#) . #5#)
                                          NIL))
                                     (GO G191)))
                                   (SEQ
                                    (EXIT
                                     (LETT #2#
                                           (CONS
                                            (CONS
                                             (SPADCALL (QCAR |int|)
                                                       (SPADCALL 1 2
                                                                 (QREFELT $
                                                                          12))
                                                       (QREFELT $ 14))
                                             (SPADCALL (QCDR |int|)
                                                       (SPADCALL 1 2
                                                                 (QREFELT $
                                                                          12))
                                                       (QREFELT $ 14)))
                                            #2#)
                                           . #5#)))
                                   (LETT #1# (CDR #1#) . #5#) (GO G190) G191
                                   (EXIT (NREVERSE #2#))))
                             . #5#)
                       (EXIT (APPEND (APPEND J L) K)))))))))) 

(DEFUN |REAL0;rootBound| (F $)
  (PROG (|b| |i| |an| |lcoef|)
    (RETURN
     (SEQ
      (COND
       ((< (SPADCALL F (QREFELT $ 48)) 0)
        (LETT F (SPADCALL F (QREFELT $ 49)) . #1=(|REAL0;rootBound|))))
      (LETT |lcoef| (SPADCALL F (QREFELT $ 48)) . #1#)
      (LETT F (SPADCALL F (QREFELT $ 50)) . #1#) (LETT |i| 0 . #1#)
      (SEQ G190
           (COND
            ((NULL
              (COND ((SPADCALL F (|spadConstant| $ 34) (QREFELT $ 36)) 'NIL)
                    ('T 'T)))
             (GO G191)))
           (SEQ
            (SEQ (LETT |an| (SPADCALL F (QREFELT $ 48)) . #1#)
                 (EXIT (COND ((< |an| 0) (LETT |i| (- |i| |an|) . #1#)))))
            (EXIT (LETT F (SPADCALL F (QREFELT $ 50)) . #1#)))
           NIL (GO G190) G191 (EXIT NIL))
      (LETT |b| 1 . #1#)
      (SEQ G190
           (COND
            ((NULL (SPADCALL (* |b| |lcoef|) |i| (QREFELT $ 51))) (GO G191)))
           (SEQ (EXIT (LETT |b| (SPADCALL 2 |b| (QREFELT $ 53)) . #1#))) NIL
           (GO G190) G191 (EXIT NIL))
      (EXIT |b|))))) 

(DEFUN |REAL0;transMult| (|c| F $)
  (PROG (G |n|)
    (RETURN
     (SEQ (LETT G (|spadConstant| $ 34) . #1=(|REAL0;transMult|))
          (SEQ G190
               (COND
                ((NULL
                  (COND
                   ((SPADCALL F (|spadConstant| $ 34) (QREFELT $ 36)) 'NIL)
                   ('T 'T)))
                 (GO G191)))
               (SEQ (LETT |n| (SPADCALL F (QREFELT $ 38)) . #1#)
                    (LETT G
                          (SPADCALL G
                                    (SPADCALL
                                     (* (EXPT |c| |n|)
                                        (SPADCALL F (QREFELT $ 48)))
                                     |n| (QREFELT $ 42))
                                    (QREFELT $ 47))
                          . #1#)
                    (EXIT (LETT F (SPADCALL F (QREFELT $ 50)) . #1#)))
               NIL (GO G190) G191 (EXIT NIL))
          (EXIT G))))) 

(DEFUN |REAL0;transMultInv| (|c| F $)
  (PROG (|d| G |cc| #1=#:G1900 |n|)
    (RETURN
     (SEQ (LETT |d| (SPADCALL F (QREFELT $ 38)) . #2=(|REAL0;transMultInv|))
          (LETT |cc| 1 . #2#)
          (LETT G (SPADCALL (SPADCALL F (QREFELT $ 48)) |d| (QREFELT $ 42))
                . #2#)
          (SEQ G190
               (COND
                ((NULL
                  (SPADCALL (LETT F (SPADCALL F (QREFELT $ 50)) . #2#)
                            (|spadConstant| $ 34) (QREFELT $ 54)))
                 (GO G191)))
               (SEQ (LETT |n| (SPADCALL F (QREFELT $ 38)) . #2#)
                    (LETT |cc|
                          (* |cc|
                             (EXPT |c|
                                   (PROG1 (LETT #1# (- |d| |n|) . #2#)
                                     (|check-subtype| (>= #1# 0)
                                                      '(|NonNegativeInteger|)
                                                      #1#))))
                          . #2#)
                    (LETT G
                          (SPADCALL G
                                    (SPADCALL
                                     (* |cc| (SPADCALL F (QREFELT $ 48))) |n|
                                     (QREFELT $ 42))
                                    (QREFELT $ 47))
                          . #2#)
                    (EXIT (LETT |d| |n| . #2#)))
               NIL (GO G190) G191 (EXIT NIL))
          (EXIT G))))) 

(DEFUN |REAL0;transAdd1| (F $)
  (PROG (|ans| |i| |j| #1=#:G1911 |v| |n|)
    (RETURN
     (SEQ (LETT |n| (SPADCALL F (QREFELT $ 38)) . #2=(|REAL0;transAdd1|))
          (LETT |v| (SPADCALL F (+ |n| 1) (QREFELT $ 56)) . #2#)
          (SEQ (LETT |i| 0 . #2#) (LETT #1# (- |n| 1) . #2#) G190
               (COND ((QSGREATERP |i| #1#) (GO G191)))
               (SEQ
                (EXIT
                 (SEQ (LETT |j| (- |n| |i|) . #2#) G190
                      (COND ((> |j| |n|) (GO G191)))
                      (SEQ
                       (EXIT
                        (QSETAREF1O |v| |j|
                                    (+ (QAREF1O |v| |j| 1)
                                       (QAREF1O |v| (+ |j| 1) 1))
                                    1)))
                      (LETT |j| (+ |j| 1) . #2#) (GO G190) G191 (EXIT NIL))))
               (LETT |i| (QSADD1 |i|) . #2#) (GO G190) G191 (EXIT NIL))
          (LETT |ans| (|spadConstant| $ 34) . #2#)
          (SEQ (LETT |i| 0 . #2#) G190 (COND ((QSGREATERP |i| |n|) (GO G191)))
               (SEQ
                (EXIT
                 (LETT |ans|
                       (SPADCALL |ans|
                                 (SPADCALL (QAREF1O |v| (+ |i| 1) 1) |i|
                                           (QREFELT $ 42))
                                 (QREFELT $ 47))
                       . #2#)))
               (LETT |i| (QSADD1 |i|) . #2#) (GO G190) G191 (EXIT NIL))
          (EXIT |ans|))))) 

(DEFUN |REAL0;minus| (F $)
  (PROG (G |coef| |n|)
    (RETURN
     (SEQ (LETT G (|spadConstant| $ 34) . #1=(|REAL0;minus|))
          (SEQ G190
               (COND
                ((NULL
                  (COND
                   ((SPADCALL F (|spadConstant| $ 34) (QREFELT $ 36)) 'NIL)
                   ('T 'T)))
                 (GO G191)))
               (SEQ (LETT |n| (SPADCALL F (QREFELT $ 38)) . #1#)
                    (LETT |coef| (SPADCALL F (QREFELT $ 48)) . #1#)
                    (EXIT
                     (COND
                      ((ODDP |n|)
                       (SEQ
                        (LETT G
                              (SPADCALL G
                                        (SPADCALL (- |coef|) |n|
                                                  (QREFELT $ 42))
                                        (QREFELT $ 47))
                              . #1#)
                        (EXIT (LETT F (SPADCALL F (QREFELT $ 50)) . #1#))))
                      ('T
                       (SEQ
                        (LETT G
                              (SPADCALL G (SPADCALL |coef| |n| (QREFELT $ 42))
                                        (QREFELT $ 47))
                              . #1#)
                        (EXIT (LETT F (SPADCALL F (QREFELT $ 50)) . #1#)))))))
               NIL (GO G190) G191 (EXIT NIL))
          (EXIT G))))) 

(DEFUN |REAL0;invert| (F $)
  (PROG (G #1=#:G1918 |n|)
    (RETURN
     (SEQ (LETT G (|spadConstant| $ 34) . #2=(|REAL0;invert|))
          (LETT |n| (SPADCALL F (QREFELT $ 38)) . #2#)
          (SEQ G190
               (COND
                ((NULL
                  (COND
                   ((SPADCALL F (|spadConstant| $ 34) (QREFELT $ 36)) 'NIL)
                   ('T 'T)))
                 (GO G191)))
               (SEQ
                (LETT G
                      (SPADCALL G
                                (SPADCALL (SPADCALL F (QREFELT $ 48))
                                          (PROG1
                                              (LETT #1#
                                                    (- |n|
                                                       (SPADCALL F
                                                                 (QREFELT $
                                                                          38)))
                                                    . #2#)
                                            (|check-subtype| (>= #1# 0)
                                                             '(|NonNegativeInteger|)
                                                             #1#))
                                          (QREFELT $ 42))
                                (QREFELT $ 47))
                      . #2#)
                (EXIT (LETT F (SPADCALL F (QREFELT $ 50)) . #2#)))
               NIL (GO G190) G191 (EXIT NIL))
          (EXIT G))))) 

(DEFUN |REAL0;var| (F $)
  (PROG (|LastCoef| |i| |next|)
    (RETURN
     (SEQ (LETT |i| 0 . #1=(|REAL0;var|))
          (LETT |LastCoef| (< (SPADCALL F (QREFELT $ 48)) 0) . #1#)
          (SEQ G190
               (COND
                ((NULL
                  (SEQ (LETT F (SPADCALL F (QREFELT $ 50)) . #1#)
                       (EXIT
                        (COND
                         ((SPADCALL F (|spadConstant| $ 34) (QREFELT $ 36))
                          'NIL)
                         ('T 'T)))))
                 (GO G191)))
               (SEQ (LETT |next| (< (SPADCALL F (QREFELT $ 48)) 0) . #1#)
                    (COND
                     (|LastCoef|
                      (COND
                       ((NULL |next|)
                        (COND (|LastCoef| (LETT |i| (+ |i| 1) . #1#))))))
                     ((OR |next| |LastCoef|) (LETT |i| (+ |i| 1) . #1#)))
                    (EXIT (LETT |LastCoef| |next| . #1#)))
               NIL (GO G190) G191 (EXIT NIL))
          (EXIT |i|))))) 

(DEFUN |REAL0;refine;Pol2RU;19| (F |int| |bounds| $)
  (PROG (|pt| |lseg|)
    (RETURN
     (SEQ
      (LETT |lseg|
            (SPADCALL (SPADCALL (QCDR |int|) (QCDR |bounds|) (QREFELT $ 57))
                      (SPADCALL (QCAR |int|) (QCAR |bounds|) (QREFELT $ 58))
                      (QREFELT $ 59))
            . #1=(|REAL0;refine;Pol2RU;19|))
      (EXIT
       (COND
        ((SPADCALL |lseg| (|spadConstant| $ 41) (QREFELT $ 60))
         (CONS 1 "failed"))
        ((SPADCALL |lseg| (|spadConstant| $ 41) (QREFELT $ 61))
         (SEQ
          (LETT |pt|
                (COND
                 ((SPADCALL (QCAR |int|) (QCDR |bounds|) (QREFELT $ 61))
                  (QCAR |int|))
                 (#2='T (QCDR |int|)))
                . #1#)
          (EXIT
           (COND
            ((EQL
              (SPADCALL
               (|REAL0;transMultInv| (SPADCALL |pt| (QREFELT $ 62)) F $)
               (SPADCALL |pt| (QREFELT $ 63)) (QREFELT $ 64))
              0)
             (CONS 0 (CONS |pt| |pt|)))
            (#2# (CONS 1 "failed"))))))
        (#2#
         (COND
          ((SPADCALL |lseg| (SPADCALL (QCDR |int|) (QCAR |int|) (QREFELT $ 59))
                     (QREFELT $ 61))
           (CONS 0 |int|))
          (#2#
           (SPADCALL F (SPADCALL F |int| |lseg| (QREFELT $ 28)) |bounds|
                     (QREFELT $ 31))))))))))) 

(DEFUN |REAL0;refine;PolRFR;20| (F |int| |eps| $)
  (PROG (|xfl| |ad| |an| |b| |a| |bd| |bn| |v| |midd| |midn| |mid| |u|
         #1=#:G1937)
    (RETURN
     (SEQ (LETT |a| (QCAR |int|) . #2=(|REAL0;refine;PolRFR;20|))
          (LETT |b| (QCDR |int|) . #2#)
          (EXIT
           (COND ((SPADCALL |a| |b| (QREFELT $ 61)) (CONS |a| |b|))
                 ('T
                  (SEQ (LETT |an| (SPADCALL |a| (QREFELT $ 63)) . #2#)
                       (LETT |ad| (SPADCALL |a| (QREFELT $ 62)) . #2#)
                       (LETT |bn| (SPADCALL |b| (QREFELT $ 63)) . #2#)
                       (LETT |bd| (SPADCALL |b| (QREFELT $ 62)) . #2#)
                       (LETT |xfl| 'NIL . #2#)
                       (SEQ
                        (LETT |u|
                              (SPADCALL (|REAL0;transMultInv| |ad| F $) |an|
                                        (QREFELT $ 64))
                              . #2#)
                        (EXIT
                         (COND
                          ((EQL |u| 0)
                           (SEQ
                            (LETT F
                                  (PROG2
                                      (LETT #1#
                                            (SPADCALL F
                                                      (SPADCALL
                                                       (SPADCALL |ad| 1
                                                                 (QREFELT $
                                                                          42))
                                                       (SPADCALL |an| 0
                                                                 (QREFELT $
                                                                          42))
                                                       (QREFELT $ 65))
                                                      (QREFELT $ 44))
                                            . #2#)
                                      (QCDR #1#)
                                    (|check-union| (QEQCAR #1# 0) (QREFELT $ 6)
                                                   #1#))
                                  . #2#)
                            (EXIT
                             (LETT |u|
                                   (SPADCALL (|REAL0;transMultInv| |ad| F $)
                                             |an| (QREFELT $ 64))
                                   . #2#)))))))
                       (SEQ
                        (LETT |v|
                              (SPADCALL (|REAL0;transMultInv| |bd| F $) |bn|
                                        (QREFELT $ 64))
                              . #2#)
                        (EXIT
                         (COND
                          ((EQL |v| 0)
                           (SEQ
                            (LETT F
                                  (PROG2
                                      (LETT #1#
                                            (SPADCALL F
                                                      (SPADCALL
                                                       (SPADCALL |bd| 1
                                                                 (QREFELT $
                                                                          42))
                                                       (SPADCALL |bn| 0
                                                                 (QREFELT $
                                                                          42))
                                                       (QREFELT $ 65))
                                                      (QREFELT $ 44))
                                            . #2#)
                                      (QCDR #1#)
                                    (|check-union| (QEQCAR #1# 0) (QREFELT $ 6)
                                                   #1#))
                                  . #2#)
                            (LETT |v|
                                  (SPADCALL (|REAL0;transMultInv| |bd| F $)
                                            |bn| (QREFELT $ 64))
                                  . #2#)
                            (EXIT
                             (LETT |u|
                                   (SPADCALL (|REAL0;transMultInv| |ad| F $)
                                             |an| (QREFELT $ 64))
                                   . #2#)))))))
                       (COND
                        ((SPADCALL |u| 0 (QREFELT $ 46))
                         (SEQ (LETT F (SPADCALL F (QREFELT $ 49)) . #2#)
                              (EXIT (LETT |v| (- |v|) . #2#)))))
                       (COND
                        ((< |v| 0)
                         (|error|
                          (LIST
                           (|coerceRe2E| |int|
                                         (ELT
                                          (|Record|
                                           (|:| |left|
                                                (|Fraction| (|Integer|)))
                                           (|:| |right|
                                                (|Fraction| (|Integer|))))
                                          0))
                           "is not a valid isolation interval for"
                           (SPADCALL F (QREFELT $ 67))))))
                       (COND
                        ((SPADCALL |eps| (|spadConstant| $ 41) (QREFELT $ 68))
                         (|error| "precision must be positive")))
                       (SEQ G190
                            (COND
                             ((NULL
                               (SPADCALL (SPADCALL |b| |a| (QREFELT $ 59))
                                         |eps| (QREFELT $ 69)))
                              (GO G191)))
                            (SEQ
                             (LETT |mid|
                                   (SPADCALL (SPADCALL |b| |a| (QREFELT $ 13))
                                             (SPADCALL 1 2 (QREFELT $ 12))
                                             (QREFELT $ 14))
                                   . #2#)
                             (LETT |midn| (SPADCALL |mid| (QREFELT $ 63))
                                   . #2#)
                             (LETT |midd| (SPADCALL |mid| (QREFELT $ 62))
                                   . #2#)
                             (LETT |v|
                                   (SPADCALL (|REAL0;transMultInv| |midd| F $)
                                             |midn| (QREFELT $ 64))
                                   . #2#)
                             (EXIT
                              (COND
                               ((< |v| 0)
                                (SEQ (LETT |a| |mid| . #2#)
                                     (LETT |an| |midn| . #2#)
                                     (EXIT (LETT |ad| |midd| . #2#))))
                               ((SPADCALL |v| 0 (QREFELT $ 46))
                                (SEQ (LETT |b| |mid| . #2#)
                                     (LETT |bn| |midn| . #2#)
                                     (EXIT (LETT |bd| |midd| . #2#))))
                               ((EQL |v| 0)
                                (SEQ (LETT |a| |mid| . #2#)
                                     (LETT |b| |mid| . #2#)
                                     (LETT |an| |midn| . #2#)
                                     (LETT |ad| |midd| . #2#)
                                     (EXIT (LETT |xfl| 'T . #2#)))))))
                            NIL (GO G190) G191 (EXIT NIL))
                       (EXIT (CONS |a| |b|)))))))))) 

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

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

(MAKEPROP '|RealZeroPackage| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|Fraction| 11) (0 . -)
              (5 . |One|) (9 . |One|) (|Integer|) (13 . /) (19 . +) (25 . *)
              (|Record| (|:| |left| 7) (|:| |right| 7)) |REAL0;midpoint;RF;2|
              (|List| 7) (|List| 15) |REAL0;midpoints;LL;3| (|Factored| $)
              (31 . |squareFree|)
              (|Record| (|:| |factor| 6) (|:| |exponent| 11)) (|List| 22)
              (|Factored| 6) (36 . |factors|) (41 . *) |REAL0;realZeros;PolL;5|
              |REAL0;refine;PolRFR;20| |REAL0;realZeros;PolFL;6|
              (|Union| 15 '"failed") |REAL0;refine;Pol2RU;19|
              |REAL0;realZeros;PolRL;7| |REAL0;realZeros;PolRFL;8|
              (47 . |Zero|) (|Boolean|) (51 . =) (|NonNegativeInteger|)
              (57 . |degree|) (62 . |minimumDegree|) (67 . >) (73 . |Zero|)
              (77 . |monomial|) (|Union| $ '"failed") (83 . |exquo|) (89 . *)
              (95 . >) (101 . +) (107 . |leadingCoefficient|) (112 . -)
              (117 . |reductum|) (122 . <=) (|PositiveInteger|) (128 . *)
              (134 . ~=) (|Vector| 11) (140 . |vectorise|) (146 . |min|)
              (152 . |max|) (158 . -) (164 . <) (170 . =) (176 . |denom|)
              (181 . |numer|) (186 . |elt|) (192 . -) (|OutputForm|)
              (198 . |coerce|) (203 . <=) (209 . >=))
           '#(|refine| 215 |realZeros| 229 |midpoints| 253 |midpoint| 258) 'NIL
           (CONS (|makeByteWordVec2| 1 'NIL)
                 (CONS '#()
                       (CONS '#()
                             (|makeByteWordVec2| 69
                                                 '(1 7 0 0 8 0 6 0 9 0 7 0 10 2
                                                   7 0 11 11 12 2 7 0 0 0 13 2
                                                   7 0 0 0 14 1 6 20 0 21 1 24
                                                   23 0 25 2 6 0 0 0 26 0 6 0
                                                   34 2 6 35 0 0 36 1 6 37 0 38
                                                   1 6 37 0 39 2 37 35 0 0 40 0
                                                   7 0 41 2 6 0 11 37 42 2 6 43
                                                   0 0 44 2 7 0 11 0 45 2 11 35
                                                   0 0 46 2 6 0 0 0 47 1 6 11 0
                                                   48 1 6 0 0 49 1 6 0 0 50 2
                                                   11 35 0 0 51 2 11 0 52 0 53
                                                   2 6 35 0 0 54 2 6 55 0 37 56
                                                   2 7 0 0 0 57 2 7 0 0 0 58 2
                                                   7 0 0 0 59 2 7 35 0 0 60 2 7
                                                   35 0 0 61 1 7 11 0 62 1 7 11
                                                   0 63 2 6 11 0 11 64 2 6 0 0
                                                   0 65 1 6 66 0 67 2 7 35 0 0
                                                   68 2 7 35 0 0 69 3 0 30 6 15
                                                   15 31 3 0 15 6 15 7 28 2 0
                                                   18 6 15 32 1 0 18 6 27 3 0
                                                   18 6 15 7 33 2 0 18 6 7 29 1
                                                   0 17 18 19 1 0 7 15 16)))))
           '|lookupComplete|)) 
