
(/VERSIONCHECK 2) 

(DEFUN |ALGMANIP;ratDenom;2F;1| (|x| $)
  (|ALGMANIP;innerRF| |x|
   (|ALGMANIP;algkernels| (SPADCALL |x| (QREFELT $ 15)) $) $)) 

(DEFUN |ALGMANIP;ratDenom;FLF;2| (|x| |l| $)
  (|ALGMANIP;innerRF| |x| (|ALGMANIP;algkernels| |l| $) $)) 

(DEFUN |ALGMANIP;ratDenom;3F;3| (|x| |y| $)
  (SPADCALL |x| (LIST |y|) (QREFELT $ 20))) 

(DEFUN |ALGMANIP;ratDenom;FLF;4| (|x| |l| $)
  (PROG (#1=#:G677 |y| #2=#:G676)
    (RETURN
     (SEQ
      (SPADCALL |x|
                (PROGN
                 (LETT #2# NIL . #3=(|ALGMANIP;ratDenom;FLF;4|))
                 (SEQ (LETT |y| NIL . #3#) (LETT #1# |l| . #3#) G190
                      (COND
                       ((OR (ATOM #1#) (PROGN (LETT |y| (CAR #1#) . #3#) NIL))
                        (GO G191)))
                      (SEQ
                       (EXIT
                        (LETT #2# (CONS (SPADCALL |y| (QREFELT $ 23)) #2#)
                              . #3#)))
                      (LETT #1# (CDR #1#) . #3#) (GO G190) G191
                      (EXIT (NREVERSE0 #2#))))
                (QREFELT $ 18)))))) 

(DEFUN |ALGMANIP;algkernels| (|l| $)
  (PROG ()
    (RETURN
     (SPADCALL (CONS #'|ALGMANIP;algkernels!0| (VECTOR (QREFELT $ 8) $)) |l|
               (QREFELT $ 29))))) 

(DEFUN |ALGMANIP;algkernels!0| (|z1| $$)
  (PROG ($ ALGOP)
    (LETT $ (QREFELT $$ 1) . #1=(|ALGMANIP;algkernels|))
    (LETT ALGOP (QREFELT $$ 0) . #1#)
    (RETURN
     (PROGN (SPADCALL (SPADCALL |z1| (QREFELT $ 25)) ALGOP (QREFELT $ 27)))))) 

(DEFUN |ALGMANIP;rootkernels| (|l| $)
  (SPADCALL (CONS #'|ALGMANIP;rootkernels!0| $) |l| (QREFELT $ 29))) 

(DEFUN |ALGMANIP;rootkernels!0| (|z1| $)
  (SPADCALL (SPADCALL |z1| (QREFELT $ 25)) (SPADCALL "nthRoot" (QREFELT $ 31))
            (QREFELT $ 32))) 

(DEFUN |ALGMANIP;ratPoly;FSup;7| (|x| $)
  (SPADCALL
   (SPADCALL
    (SPADCALL
     (SPADCALL
      (SPADCALL
       (SPADCALL
        (SPADCALL
         (SPADCALL (SPADCALL (QREFELT $ 13) (QREFELT $ 34)) (QREFELT $ 36)) |x|
         (QREFELT $ 37))
        (QREFELT $ 38))
       (QREFELT $ 16))
      (QREFELT $ 39))
     (QREFELT $ 36))
    (QREFELT $ 13) (QREFELT $ 42))
   (QREFELT $ 44))) 

(DEFUN |ALGMANIP;rootSplit;2F;8| (|x| $)
  (PROG (#1=#:G686 |k| #2=#:G685 |lk|)
    (RETURN
     (SEQ
      (LETT |lk| (|ALGMANIP;rootkernels| (SPADCALL |x| (QREFELT $ 15)) $)
            . #3=(|ALGMANIP;rootSplit;2F;8|))
      (EXIT
       (SPADCALL |x| |lk|
                 (PROGN
                  (LETT #2# NIL . #3#)
                  (SEQ (LETT |k| NIL . #3#) (LETT #1# |lk| . #3#) G190
                       (COND
                        ((OR (ATOM #1#) (PROGN (LETT |k| (CAR #1#) . #3#) NIL))
                         (GO G191)))
                       (SEQ
                        (EXIT
                         (LETT #2# (CONS (|ALGMANIP;rootExpand| |k| $) #2#)
                               . #3#)))
                       (LETT #1# (CDR #1#) . #3#) (GO G190) G191
                       (EXIT (NREVERSE0 #2#))))
                 (QREFELT $ 47))))))) 

(DEFUN |ALGMANIP;rootExpand| (|k| $)
  (PROG (|op| |n| |x|)
    (RETURN
     (SEQ
      (LETT |x| (|SPADfirst| (SPADCALL |k| (QREFELT $ 49)))
            . #1=(|ALGMANIP;rootExpand|))
      (LETT |n| (SPADCALL (SPADCALL |k| (QREFELT $ 49)) (QREFELT $ 50)) . #1#)
      (LETT |op| (SPADCALL |k| (QREFELT $ 25)) . #1#)
      (EXIT
       (SPADCALL
        (SPADCALL |op| (SPADCALL (SPADCALL |x| (QREFELT $ 51)) (QREFELT $ 36))
                  |n| (QREFELT $ 52))
        (SPADCALL |op| (SPADCALL (SPADCALL |x| (QREFELT $ 39)) (QREFELT $ 36))
                  |n| (QREFELT $ 52))
        (QREFELT $ 53))))))) 

(DEFUN |ALGMANIP;innerRF| (|x| |ll| $)
  (PROG (|q| #1=#:G704 |kk| #2=#:G703 #3=#:G695 #4=#:G700 #5=#:G702 #6=#:G701
         |l| |lk| |k|)
    (RETURN
     (SEQ
      (EXIT
       (COND
        ((OR
          (NULL
           (LETT |l|
                 (SPADCALL (CONS #'|ALGMANIP;innerRF!0| $)
                           (SPADCALL |x| (QREFELT $ 55)) (QREFELT $ 57))
                 . #7=(|ALGMANIP;innerRF|)))
          (NULL (SPADCALL |ll| (SPADCALL |x| (QREFELT $ 15)) (QREFELT $ 58))))
         |x|)
        ('T
         (SEQ (LETT |lk| NIL . #7#)
              (SEQ G190
                   (COND
                    ((NULL
                      (COND
                       ((SPADCALL (LETT |k| (|SPADfirst| |l|) . #7#) |ll|
                                  (QREFELT $ 59))
                        'NIL)
                       ('T 'T)))
                     #8=(GO G191)))
                   (SEQ
                    (EXIT
                     (SEQ (LETT |lk| (CONS |k| |lk|) . #7#)
                          (EXIT
                           (COND
                            ((NULL (LETT |l| (CDR |l|) . #7#))
                             (PROGN
                              (LETT #3#
                                    (PROGN
                                     (LETT #4#
                                           (SPADCALL |x| |lk|
                                                     (PROGN
                                                      (LETT #6# NIL . #7#)
                                                      (SEQ
                                                       (LETT |kk| NIL . #7#)
                                                       (LETT #5# |lk| . #7#)
                                                       G190
                                                       (COND
                                                        ((OR (ATOM #5#)
                                                             (PROGN
                                                              (LETT |kk|
                                                                    (CAR #5#)
                                                                    . #7#)
                                                              NIL))
                                                         #8#))
                                                       (SEQ
                                                        (EXIT
                                                         (LETT #6#
                                                               (CONS
                                                                (SPADCALL
                                                                 (CONS
                                                                  #'|ALGMANIP;innerRF!1|
                                                                  (VECTOR $
                                                                          |ll|))
                                                                 |kk|
                                                                 (QREFELT $
                                                                          61))
                                                                #6#)
                                                               . #7#)))
                                                       (LETT #5# (CDR #5#)
                                                             . #7#)
                                                       #9=(GO G190) G191
                                                       (EXIT (NREVERSE0 #6#))))
                                                     (QREFELT $ 47))
                                           . #7#)
                                     (GO #4#))
                                    . #7#)
                              (GO #3#)))))))
                    #3# (EXIT #3#))
                   NIL #9# G191 (EXIT NIL))
              (LETT |q|
                    (SPADCALL
                     (SPADCALL |x| |lk|
                               (PROGN
                                (LETT #2# NIL . #7#)
                                (SEQ (LETT |kk| NIL . #7#)
                                     (LETT #1# |lk| . #7#) G190
                                     (COND
                                      ((OR (ATOM #1#)
                                           (PROGN
                                            (LETT |kk| (CAR #1#) . #7#)
                                            NIL))
                                       #8#))
                                     (SEQ
                                      (EXIT
                                       (LETT #2#
                                             (CONS
                                              (SPADCALL
                                               (CONS #'|ALGMANIP;innerRF!2|
                                                     (VECTOR $ |ll|))
                                               |kk| (QREFELT $ 61))
                                              #2#)
                                             . #7#)))
                                     (LETT #1# (CDR #1#) . #7#) #9# G191
                                     (EXIT (NREVERSE0 #2#))))
                               (QREFELT $ 47))
                     |k| (SPADCALL |k| (QREFELT $ 63)) (QREFELT $ 64))
                    . #7#)
              (EXIT
               (SPADCALL
                (SPADCALL (CONS #'|ALGMANIP;innerRF!3| (VECTOR $ |ll|)) |q|
                          (QREFELT $ 66))
                (SPADCALL (CONS #'|ALGMANIP;innerRF!4| (VECTOR $ |ll|)) |k|
                          (QREFELT $ 61))
                (QREFELT $ 67)))))))
      #4# (EXIT #4#))))) 

(DEFUN |ALGMANIP;innerRF!4| (|z1| $$)
  (PROG (|ll| $)
    (LETT |ll| (QREFELT $$ 1) . #1=(|ALGMANIP;innerRF|))
    (LETT $ (QREFELT $$ 0) . #1#)
    (RETURN (PROGN (|ALGMANIP;innerRF| |z1| |ll| $))))) 

(DEFUN |ALGMANIP;innerRF!3| (|z1| $$)
  (PROG (|ll| $)
    (LETT |ll| (QREFELT $$ 1) . #1=(|ALGMANIP;innerRF|))
    (LETT $ (QREFELT $$ 0) . #1#)
    (RETURN (PROGN (|ALGMANIP;innerRF| |z1| |ll| $))))) 

(DEFUN |ALGMANIP;innerRF!2| (|z1| $$)
  (PROG (|ll| $)
    (LETT |ll| (QREFELT $$ 1) . #1=(|ALGMANIP;innerRF|))
    (LETT $ (QREFELT $$ 0) . #1#)
    (RETURN (PROGN (|ALGMANIP;innerRF| |z1| |ll| $))))) 

(DEFUN |ALGMANIP;innerRF!1| (|z1| $$)
  (PROG (|ll| $)
    (LETT |ll| (QREFELT $$ 1) . #1=(|ALGMANIP;innerRF|))
    (LETT $ (QREFELT $$ 0) . #1#)
    (RETURN (PROGN (|ALGMANIP;innerRF| |z1| |ll| $))))) 

(DEFUN |ALGMANIP;innerRF!0| (|z1| |z2| $) (SPADCALL |z2| |z1| (QREFELT $ 54))) 

(DEFUN |ALGMANIP;rootKerSimp;BoFNniF;11| (|op| |x| |n| $)
  (PROG (|r|)
    (RETURN
     (SEQ
      (LETT |r| (SPADCALL |x| (QREFELT $ 69))
            |ALGMANIP;rootKerSimp;BoFNniF;11|)
      (EXIT
       (COND
        ((QEQCAR |r| 0)
         (SPADCALL (SPADCALL (QCDR |r|) |n| (QREFELT $ 71)) (QREFELT $ 72)))
        ('T (|ALGMANIP;inroot| |op| |x| |n| $)))))))) 

(DEFUN |ALGMANIP;rootKerSimp;BoFNniF;12| (|op| |x| |n| $)
  (|ALGMANIP;inroot| |op| |x| |n| $)) 

(DEFUN |ALGMANIP;breakup| (|l| $)
  (PROG (|ll| |others| |expo| |same| |arg| #1=#:G721 |kk| |n| |a| |k|)
    (RETURN
     (SEQ
      (COND ((NULL |l|) NIL)
            ('T
             (SEQ (LETT |k| (|SPADfirst| |l|) . #2=(|ALGMANIP;breakup|))
                  (LETT |a|
                        (|SPADfirst|
                         (LETT |arg|
                               (SPADCALL (LETT |k| (|SPADfirst| |l|) . #2#)
                                         (QREFELT $ 49))
                               . #2#))
                        . #2#)
                  (LETT |n|
                        (SPADCALL (SPADCALL |arg| (QREFELT $ 50))
                                  (QREFELT $ 75))
                        . #2#)
                  (LETT |expo| NIL . #2#)
                  (LETT |others| (LETT |same| NIL . #2#) . #2#)
                  (SEQ (LETT |kk| NIL . #2#) (LETT #1# (CDR |l|) . #2#) G190
                       (COND
                        ((OR (ATOM #1#)
                             (PROGN (LETT |kk| (CAR #1#) . #2#) NIL))
                         (GO G191)))
                       (SEQ
                        (EXIT
                         (COND
                          ((SPADCALL |a|
                                     (|SPADfirst|
                                      (LETT |arg|
                                            (SPADCALL |kk| (QREFELT $ 49))
                                            . #2#))
                                     (QREFELT $ 76))
                           (SEQ (LETT |same| (CONS |kk| |same|) . #2#)
                                (EXIT
                                 (LETT |expo|
                                       (CONS
                                        (SPADCALL
                                         (SPADCALL |arg| (QREFELT $ 50))
                                         (QREFELT $ 75))
                                        |expo|)
                                       . #2#))))
                          ('T (LETT |others| (CONS |kk| |others|) . #2#)))))
                       (LETT #1# (CDR #1#) . #2#) (GO G190) G191 (EXIT NIL))
                  (LETT |ll| (|ALGMANIP;breakup| |others| $) . #2#)
                  (EXIT
                   (CONS (CONS (CONS |k| |same|) (CONS |n| |expo|))
                         |ll|))))))))) 

(DEFUN |ALGMANIP;rootProduct;2F;14| (|x| $)
  (PROG (|lv| #1=#:G723 #2=#:G732 |m| #3=#:G731 |k| |n| |dx| |nx| |k0| |l|
         #4=#:G730 |rec|)
    (RETURN
     (SEQ
      (SEQ (LETT |rec| NIL . #5=(|ALGMANIP;rootProduct;2F;14|))
           (LETT #4#
                 (|ALGMANIP;breakup|
                  (|ALGMANIP;rootkernels| (SPADCALL |x| (QREFELT $ 15)) $) $)
                 . #5#)
           G190
           (COND
            ((OR (ATOM #4#) (PROGN (LETT |rec| (CAR #4#) . #5#) NIL))
             #6=(GO G191)))
           (SEQ (LETT |k0| (|SPADfirst| (LETT |l| (QCAR |rec|) . #5#)) . #5#)
                (LETT |nx| (SPADCALL |x| (QREFELT $ 51)) . #5#)
                (LETT |dx| (SPADCALL |x| (QREFELT $ 39)) . #5#)
                (EXIT
                 (COND
                  ((NULL (CDR |l|))
                   (LETT |x|
                         (SPADCALL (|ALGMANIP;radeval| |nx| |k0| $)
                                   (|ALGMANIP;radeval| |dx| |k0| $)
                                   (QREFELT $ 53))
                         . #5#))
                  ('T
                   (SEQ (LETT |n| (SPADCALL (QCDR |rec|) (QREFELT $ 77)) . #5#)
                        (LETT |k|
                              (SPADCALL (SPADCALL |k0| (QREFELT $ 25))
                                        (LIST
                                         (|SPADfirst|
                                          (SPADCALL |k0| (QREFELT $ 49)))
                                         (SPADCALL |n| (QREFELT $ 78)))
                                        (SPADCALL |k0| (QREFELT $ 79))
                                        (QREFELT $ 80))
                              . #5#)
                        (LETT |lv|
                              (PROGN
                               (LETT #3# NIL . #5#)
                               (SEQ (LETT |m| NIL . #5#)
                                    (LETT #2# (QCDR |rec|) . #5#) G190
                                    (COND
                                     ((OR (ATOM #2#)
                                          (PROGN
                                           (LETT |m| (CAR #2#) . #5#)
                                           NIL))
                                      #6#))
                                    (SEQ
                                     (EXIT
                                      (LETT #3#
                                            (CONS
                                             (SPADCALL (|spadConstant| $ 83)
                                                       |k|
                                                       (PROG1
                                                           (LETT #1#
                                                                 (QUOTIENT2 |n|
                                                                            |m|)
                                                                 . #5#)
                                                         (|check-subtype|
                                                          (>= #1# 0)
                                                          '(|NonNegativeInteger|)
                                                          #1#))
                                                       (QREFELT $ 84))
                                             #3#)
                                            . #5#)))
                                    (LETT #2# (CDR #2#) . #5#) #7=(GO G190)
                                    G191 (EXIT (NREVERSE0 #3#))))
                              . #5#)
                        (EXIT
                         (LETT |x|
                               (SPADCALL
                                (|ALGMANIP;radeval|
                                 (SPADCALL |nx| |l| |lv| (QREFELT $ 85)) |k| $)
                                (|ALGMANIP;radeval|
                                 (SPADCALL |dx| |l| |lv| (QREFELT $ 85)) |k| $)
                                (QREFELT $ 53))
                               . #5#)))))))
           (LETT #4# (CDR #4#) . #5#) #7# G191 (EXIT NIL))
      (EXIT |x|))))) 

(DEFUN |ALGMANIP;rootPower;2F;15| (|x| $)
  (PROG (#1=#:G736 |k|)
    (RETURN
     (SEQ
      (SEQ (LETT |k| NIL . #2=(|ALGMANIP;rootPower;2F;15|))
           (LETT #1# (|ALGMANIP;rootkernels| (SPADCALL |x| (QREFELT $ 15)) $)
                 . #2#)
           G190
           (COND
            ((OR (ATOM #1#) (PROGN (LETT |k| (CAR #1#) . #2#) NIL)) (GO G191)))
           (SEQ
            (EXIT
             (LETT |x|
                   (SPADCALL
                    (|ALGMANIP;radeval| (SPADCALL |x| (QREFELT $ 51)) |k| $)
                    (|ALGMANIP;radeval| (SPADCALL |x| (QREFELT $ 39)) |k| $)
                    (QREFELT $ 53))
                   . #2#)))
           (LETT #1# (CDR #1#) . #2#) (GO G190) G191 (EXIT NIL))
      (EXIT |x|))))) 

(DEFUN |ALGMANIP;radeval| (|p| |k| $)
  (PROG (|q| |ans| |term| |g| |d| |n| #1=#:G737 |a| |arg|)
    (RETURN
     (SEQ
      (LETT |a|
            (|SPADfirst|
             (LETT |arg| (SPADCALL |k| (QREFELT $ 49))
                   . #2=(|ALGMANIP;radeval|)))
            . #2#)
      (LETT |n|
            (PROG1
                (LETT #1#
                      (SPADCALL (SPADCALL |arg| (QREFELT $ 50)) (QREFELT $ 75))
                      . #2#)
              (|check-subtype| (>= #1# 0) '(|NonNegativeInteger|) #1#))
            . #2#)
      (LETT |ans| (|spadConstant| $ 88) . #2#)
      (LETT |q| (SPADCALL |p| |k| (QREFELT $ 89)) . #2#)
      (SEQ G190
           (COND
            ((NULL (< 0 (LETT |d| (SPADCALL |q| (QREFELT $ 94)) . #2#)))
             (GO G191)))
           (SEQ
            (LETT |term|
                  (SEQ (LETT |g| (GCD |d| |n|) . #2#)
                       (EXIT
                        (COND
                         ((EQL |g| 1)
                          (SPADCALL (|spadConstant| $ 83) |k| |d|
                                    (QREFELT $ 84)))
                         ('T
                          (SPADCALL (|spadConstant| $ 83)
                                    (SPADCALL (SPADCALL |k| (QREFELT $ 25))
                                              (LIST |a|
                                                    (SPADCALL
                                                     (QUOTIENT2 |n| |g|)
                                                     (QREFELT $ 78)))
                                              (SPADCALL |k| (QREFELT $ 79))
                                              (QREFELT $ 80))
                                    (QUOTIENT2 |d| |g|) (QREFELT $ 84))))))
                  . #2#)
            (LETT |ans|
                  (SPADCALL |ans|
                            (SPADCALL
                             (SPADCALL (SPADCALL |q| (QREFELT $ 95))
                                       (QREFELT $ 96))
                             (SPADCALL |term| (QREFELT $ 96)) (QREFELT $ 97))
                            (QREFELT $ 98))
                  . #2#)
            (EXIT (LETT |q| (SPADCALL |q| (QREFELT $ 99)) . #2#)))
           NIL (GO G190) G191 (EXIT NIL))
      (EXIT
       (SPADCALL (SPADCALL (SPADCALL |q| (QREFELT $ 95)) (QREFELT $ 96)) |ans|
                 (QREFELT $ 98))))))) 

(DEFUN |ALGMANIP;inroot| (|op| |x| |n| $)
  (PROG (#1=#:G775 |qr| |q| |pr| |u| #2=#:G777 |num|)
    (RETURN
     (SEQ
      (COND ((SPADCALL |x| (|spadConstant| $ 82) (QREFELT $ 76)) |x|)
            (#3='T
             (SEQ
              (EXIT
               (SEQ
                (COND
                 ((NULL
                   (SPADCALL |x|
                             (SPADCALL (|spadConstant| $ 82) (QREFELT $ 100))
                             (QREFELT $ 76)))
                  (SEQ
                   (LETT |num| (SPADCALL |x| (QREFELT $ 51))
                         . #4=(|ALGMANIP;inroot|))
                   (EXIT
                    (COND
                     ((OR
                       (SPADCALL |num| (|spadConstant| $ 83) (QREFELT $ 101))
                       (SPADCALL |num|
                                 (SPADCALL (|spadConstant| $ 83)
                                           (QREFELT $ 103))
                                 (QREFELT $ 101)))
                      (PROGN
                       (LETT #2#
                             (SPADCALL
                              (|ALGMANIP;inroot| |op|
                               (SPADCALL
                                (SPADCALL |num| (SPADCALL |x| (QREFELT $ 39))
                                          (QREFELT $ 102))
                                (QREFELT $ 96))
                               |n| $)
                              (QREFELT $ 38))
                             . #4#)
                       (GO #2#))))))))
                (LETT |u| (SPADCALL |x| |op| (QREFELT $ 106)) . #4#)
                (EXIT
                 (COND
                  ((QEQCAR |u| 1)
                   (SPADCALL |op| (LIST |x| (SPADCALL |n| (QREFELT $ 78)))
                             (QREFELT $ 107)))
                  (#3#
                   (SEQ (LETT |pr| (QCDR |u|) . #4#)
                        (LETT |q|
                              (SPADCALL (QCDR |pr|)
                                        (SPADCALL |n|
                                                  (SPADCALL
                                                   (SPADCALL
                                                    (SPADCALL (QCAR |pr|)
                                                              (QREFELT $ 49))
                                                    (QREFELT $ 50))
                                                   (QREFELT $ 75))
                                                  (QREFELT $ 108))
                                        (QREFELT $ 110))
                              . #4#)
                        (LETT |qr|
                              (DIVIDE2 (SPADCALL |q| (QREFELT $ 111))
                                       (SPADCALL |q| (QREFELT $ 112)))
                              . #4#)
                        (LETT |x|
                              (|SPADfirst|
                               (SPADCALL (QCAR |pr|) (QREFELT $ 49)))
                              . #4#)
                        (EXIT
                         (SPADCALL (SPADCALL |x| (QCAR |qr|) (QREFELT $ 113))
                                   (SPADCALL
                                    (SPADCALL |op| |x|
                                              (PROG1
                                                  (LETT #1#
                                                        (SPADCALL |q|
                                                                  (QREFELT $
                                                                           112))
                                                        . #4#)
                                                (|check-subtype| (>= #1# 0)
                                                                 '(|NonNegativeInteger|)
                                                                 #1#))
                                              (QREFELT $ 74))
                                    (QCDR |qr|) (QREFELT $ 113))
                                   (QREFELT $ 97)))))))))
              #2# (EXIT #2#)))))))) 

(DEFUN |ALGMANIP;sroot| (|k| $)
  (PROG (|pr| #1=#:G779 |arg|)
    (RETURN
     (SEQ
      (LETT |pr|
            (SPADCALL
             (|SPADfirst|
              (LETT |arg| (SPADCALL |k| (QREFELT $ 49))
                    . #2=(|ALGMANIP;sroot|)))
             (PROG1
                 (LETT #1#
                       (SPADCALL (SPADCALL |arg| (QREFELT $ 50))
                                 (QREFELT $ 75))
                       . #2#)
               (|check-subtype| (>= #1# 0) '(|NonNegativeInteger|) #1#))
             (QREFELT $ 116))
            . #2#)
      (EXIT
       (SPADCALL (QVELT |pr| 1)
                 (SPADCALL (SPADCALL |k| (QREFELT $ 25)) (QVELT |pr| 2)
                           (QVELT |pr| 0) (QREFELT $ 74))
                 (QREFELT $ 97))))))) 

(DEFUN |ALGMANIP;rootSimp;2F;19| (|x| $)
  (PROG (#1=#:G788 |k| #2=#:G787 |lk|)
    (RETURN
     (SEQ
      (LETT |lk| (|ALGMANIP;rootkernels| (SPADCALL |x| (QREFELT $ 15)) $)
            . #3=(|ALGMANIP;rootSimp;2F;19|))
      (EXIT
       (SPADCALL |x| |lk|
                 (PROGN
                  (LETT #2# NIL . #3#)
                  (SEQ (LETT |k| NIL . #3#) (LETT #1# |lk| . #3#) G190
                       (COND
                        ((OR (ATOM #1#) (PROGN (LETT |k| (CAR #1#) . #3#) NIL))
                         (GO G191)))
                       (SEQ
                        (EXIT
                         (LETT #2# (CONS (|ALGMANIP;sroot| |k| $) #2#) . #3#)))
                       (LETT #1# (CDR #1#) . #3#) (GO G190) G191
                       (EXIT (NREVERSE0 #2#))))
                 (QREFELT $ 47))))))) 

(DEFUN |AlgebraicManipulations| (&REST #1=#:G789)
  (PROG ()
    (RETURN
     (PROG (#2=#:G790)
       (RETURN
        (COND
         ((LETT #2#
                (|lassocShiftWithFunction| (|devaluateList| #1#)
                                           (HGET |$ConstructorCache|
                                                 '|AlgebraicManipulations|)
                                           '|domainEqualList|)
                . #3=(|AlgebraicManipulations|))
          (|CDRwithIncrement| #2#))
         ('T
          (UNWIND-PROTECT
              (PROG1 (APPLY (|function| |AlgebraicManipulations;|) #1#)
                (LETT #2# T . #3#))
            (COND
             ((NOT #2#)
              (HREM |$ConstructorCache| '|AlgebraicManipulations|))))))))))) 

(DEFUN |AlgebraicManipulations;| (|#1| |#2|)
  (PROG (|pv$| $ |dv$| DV$2 DV$1)
    (RETURN
     (PROGN
      (LETT DV$1 (|devaluate| |#1|) . #1=(|AlgebraicManipulations|))
      (LETT DV$2 (|devaluate| |#2|) . #1#)
      (LETT |dv$| (LIST '|AlgebraicManipulations| DV$1 DV$2) . #1#)
      (LETT $ (GETREFV 118) . #1#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3
                (LETT |pv$|
                      (|buildPredVector| 0 0
                                         (LIST
                                          (AND
                                           (|HasCategory| |#1| '(|Comparable|))
                                           (|HasCategory| |#1| '(|GcdDomain|))
                                           (|HasCategory| |#1|
                                                          '(|RetractableTo|
                                                            (|Integer|)))
                                           (|HasCategory| |#2|
                                                          (LIST
                                                           '|FunctionSpace|
                                                           (|devaluate|
                                                            |#1|))))))
                      . #1#))
      (|haddProp| |$ConstructorCache| '|AlgebraicManipulations|
                  (LIST DV$1 DV$2) (CONS 1 $))
      (|stuffDomainSlots| $)
      (QSETREFV $ 6 |#1|)
      (QSETREFV $ 7 |#2|)
      (QSETREFV $ 8 '|%alg|)
      (QSETREFV $ 13 (SPADCALL (SPADCALL (QREFELT $ 10)) (QREFELT $ 12)))
      (COND
       ((|HasCategory| |#1| '(|Comparable|))
        (COND
         ((|HasCategory| |#1| '(|GcdDomain|))
          (COND
           ((|HasCategory| |#1| '(|RetractableTo| (|Integer|)))
            (COND
             ((|HasCategory| |#2| (LIST '|FunctionSpace| (|devaluate| |#1|)))
              (PROGN
               (COND
                ((|HasCategory| |#1| '(|RadicalCategory|))
                 (QSETREFV $ 74
                           (CONS
                            (|dispatchFunction|
                             |ALGMANIP;rootKerSimp;BoFNniF;11|)
                            $)))
                ('T
                 (QSETREFV $ 74
                           (CONS
                            (|dispatchFunction|
                             |ALGMANIP;rootKerSimp;BoFNniF;12|)
                            $))))
               (QSETREFV $ 86
                         (CONS
                          (|dispatchFunction| |ALGMANIP;rootProduct;2F;14|) $))
               (QSETREFV $ 87
                         (CONS (|dispatchFunction| |ALGMANIP;rootPower;2F;15|)
                               $))
               (QSETREFV $ 117
                         (CONS (|dispatchFunction| |ALGMANIP;rootSimp;2F;19|)
                               $)))))))))))
      $)))) 

(MAKEPROP '|AlgebraicManipulations| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|local| |#2|) 'ALGOP
              (|Symbol|) (0 . |new|) (|Kernel| 7) (4 . |kernel|) '|dummy|
              (|List| 22) (9 . |tower|) |ALGMANIP;ratDenom;2F;1| (|List| 11)
              |ALGMANIP;ratDenom;FLF;2| (|List| 7) |ALGMANIP;ratDenom;FLF;4|
              |ALGMANIP;ratDenom;3F;3| (|Kernel| $) (14 . |retract|)
              (|BasicOperator|) (19 . |operator|) (|Boolean|) (24 . |has?|)
              (|Mapping| 26 11) (30 . |select!|) (|String|) (36 . |coerce|)
              (41 . |is?|) (|SparseMultivariatePolynomial| 6 11)
              (47 . |coerce|) (|SparseMultivariatePolynomial| 6 22)
              (52 . |coerce|) (57 . -) (63 . |inv|) (68 . |denom|)
              (|Fraction| 43)
              (|PolynomialCategoryQuotientFunctions| (|IndexedExponents| 11) 11
                                                     6 33 7)
              (73 . |univariate|) (|SparseUnivariatePolynomial| 7)
              (79 . |numer|) |ALGMANIP;ratPoly;FSup;7| (|List| $) (84 . |eval|)
              |ALGMANIP;rootSplit;2F;8| (91 . |argument|) (96 . |second|)
              (101 . |numer|) (106 . |elt|) (113 . /) (119 . <)
              (125 . |kernels|) (|Mapping| 26 11 11) (130 . |sort!|)
              (136 . |setIntersection|) (142 . |member?|) (|Mapping| $ $)
              (148 . |map|) (|SparseUnivariatePolynomial| $) (154 . |minPoly|)
              (159 . |univariate|) (|Mapping| 7 7) (166 . |map|) (172 . |elt|)
              (|Union| 6 '"failed") (178 . |retractIfCan|) (|Integer|)
              (183 . |nthRoot|) (189 . |coerce|) (|NonNegativeInteger|)
              (194 . |rootKerSimp|) (201 . |retract|) (206 . =) (212 . |lcm|)
              (217 . |coerce|) (222 . |height|) (227 . |kernel|) (234 . |One|)
              (238 . |One|) (242 . |One|) (246 . |monomial|) (253 . |eval|)
              (260 . |rootProduct|) (265 . |rootPower|) (270 . |Zero|)
              (274 . |univariate|) (280 . |Zero|) (284 . |Zero|)
              (|SparseUnivariatePolynomial| 33) (288 . |Zero|) (292 . |degree|)
              (297 . |leadingCoefficient|) (302 . |coerce|) (307 . *) (313 . +)
              (319 . |reductum|) (324 . -) (329 . =) (335 . *) (341 . -)
              (|Record| (|:| |var| 22) (|:| |exponent| 70))
              (|Union| 104 '"failed") (346 . |isExpt|) (352 . |kernel|)
              (358 . *) (|Fraction| 70) (364 . /) (370 . |numer|)
              (375 . |denom|) (380 . ^)
              (|Record| (|:| |exponent| 73) (|:| |coef| 7) (|:| |radicand| 7))
              (|PolynomialRoots| (|IndexedExponents| 11) 11 6 33 7)
              (386 . |froot|) (392 . |rootSimp|))
           '#(|rootSplit| 397 |rootSimp| 402 |rootProduct| 407 |rootPower| 412
              |rootKerSimp| 417 |ratPoly| 424 |ratDenom| 429)
           'NIL
           (CONS (|makeByteWordVec2| 1 'NIL)
                 (CONS '#()
                       (CONS '#()
                             (|makeByteWordVec2| 117
                                                 '(0 9 0 10 1 11 0 9 12 1 7 14
                                                   0 15 1 7 22 0 23 1 11 24 0
                                                   25 2 24 26 0 9 27 2 17 0 28
                                                   0 29 1 9 0 30 31 2 24 26 0 9
                                                   32 1 33 0 11 34 1 7 0 35 36
                                                   2 7 0 0 0 37 1 7 0 0 38 1 7
                                                   35 0 39 2 41 40 7 11 42 1 40
                                                   43 0 44 3 7 0 0 14 46 47 1
                                                   11 19 0 49 1 19 7 0 50 1 7
                                                   35 0 51 3 7 0 24 0 0 52 2 7
                                                   0 0 0 53 2 11 26 0 0 54 1 7
                                                   14 0 55 2 17 0 56 0 57 2 17
                                                   0 0 0 58 2 17 26 11 0 59 2 7
                                                   0 60 22 61 1 7 62 22 63 3 41
                                                   43 7 11 43 64 2 43 0 65 0 66
                                                   2 43 7 0 7 67 1 7 68 0 69 2
                                                   6 0 0 70 71 1 7 0 6 72 3 0 7
                                                   24 7 73 74 1 7 70 0 75 2 7
                                                   26 0 0 76 1 70 0 46 77 1 7 0
                                                   70 78 1 11 73 0 79 3 11 0 24
                                                   19 73 80 0 6 0 81 0 7 0 82 0
                                                   33 0 83 3 33 0 0 11 73 84 3
                                                   33 0 0 17 46 85 1 0 7 7 86 1
                                                   0 7 7 87 0 7 0 88 2 33 62 0
                                                   11 89 0 6 0 90 0 33 0 91 0
                                                   92 0 93 1 92 73 0 94 1 92 33
                                                   0 95 1 7 0 35 96 2 7 0 0 0
                                                   97 2 7 0 0 0 98 1 92 0 0 99
                                                   1 7 0 0 100 2 33 26 0 0 101
                                                   2 33 0 0 0 102 1 33 0 0 103
                                                   2 7 105 0 24 106 2 7 0 24 46
                                                   107 2 70 0 73 0 108 2 109 0
                                                   70 70 110 1 109 70 0 111 1
                                                   109 70 0 112 2 7 0 0 70 113
                                                   2 115 114 7 73 116 1 0 7 7
                                                   117 1 0 7 7 48 1 1 7 7 117 1
                                                   1 7 7 86 1 1 7 7 87 3 1 7 24
                                                   7 73 74 1 0 43 7 45 1 0 7 7
                                                   16 2 0 7 7 7 21 2 0 7 7 17
                                                   18 2 0 7 7 19 20)))))
           '|lookupComplete|)) 
