
(/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=#:G1819 |y| #2=#:G1818)
    (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)) '|nthRoot| (QREFELT $ 30))) 

(DEFUN |ALGMANIP;ratPoly;FSup;7| (|x| $)
  (SPADCALL
   (SPADCALL
    (SPADCALL
     (SPADCALL
      (SPADCALL
       (SPADCALL
        (SPADCALL
         (SPADCALL (SPADCALL (QREFELT $ 13) (QREFELT $ 32)) (QREFELT $ 34)) |x|
         (QREFELT $ 35))
        (QREFELT $ 36))
       (QREFELT $ 16))
      (QREFELT $ 37))
     (QREFELT $ 34))
    (QREFELT $ 13) (QREFELT $ 40))
   (QREFELT $ 42))) 

(DEFUN |ALGMANIP;rootSplit;2F;8| (|x| $)
  (PROG (#1=#:G1837 |k| #2=#:G1836 |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 $ 45))))))) 

(DEFUN |ALGMANIP;rootExpand| (|k| $)
  (PROG (|op| |n| |x|)
    (RETURN
     (SEQ
      (LETT |x| (|SPADfirst| (SPADCALL |k| (QREFELT $ 47)))
            . #1=(|ALGMANIP;rootExpand|))
      (LETT |n| (SPADCALL (SPADCALL |k| (QREFELT $ 47)) (QREFELT $ 48)) . #1#)
      (LETT |op| (SPADCALL |k| (QREFELT $ 25)) . #1#)
      (EXIT
       (SPADCALL
        (SPADCALL |op| (SPADCALL (SPADCALL |x| (QREFELT $ 49)) (QREFELT $ 34))
                  |n| (QREFELT $ 50))
        (SPADCALL |op| (SPADCALL (SPADCALL |x| (QREFELT $ 37)) (QREFELT $ 34))
                  |n| (QREFELT $ 50))
        (QREFELT $ 51))))))) 

(DEFUN |ALGMANIP;innerRF| (|x| |ll| $)
  (PROG (|q| #1=#:G1881 |kk| #2=#:G1880 #3=#:G1850 #4=#:G1877 #5=#:G1879
         #6=#:G1878 |l| |lk| |k|)
    (RETURN
     (SEQ
      (EXIT
       (COND
        ((OR
          (NULL
           (LETT |l|
                 (SPADCALL (CONS #'|ALGMANIP;innerRF!0| $)
                           (SPADCALL |x| (QREFELT $ 53)) (QREFELT $ 55))
                 . #7=(|ALGMANIP;innerRF|)))
          (NULL (SPADCALL |ll| (SPADCALL |x| (QREFELT $ 15)) (QREFELT $ 56))))
         |x|)
        ('T
         (SEQ (LETT |lk| NIL . #7#)
              (SEQ G190
                   (COND
                    ((NULL
                      (COND
                       ((SPADCALL (LETT |k| (|SPADfirst| |l|) . #7#) |ll|
                                  (QREFELT $ 57))
                        '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 $
                                                                          59))
                                                                #6#)
                                                               . #7#)))
                                                       (LETT #5# (CDR #5#)
                                                             . #7#)
                                                       #9=(GO G190) G191
                                                       (EXIT (NREVERSE0 #6#))))
                                                     (QREFELT $ 45))
                                           . #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 $ 59))
                                              #2#)
                                             . #7#)))
                                     (LETT #1# (CDR #1#) . #7#) #9# G191
                                     (EXIT (NREVERSE0 #2#))))
                               (QREFELT $ 45))
                     |k| (SPADCALL |k| (QREFELT $ 61)) (QREFELT $ 62))
                    . #7#)
              (EXIT
               (SPADCALL
                (SPADCALL (CONS #'|ALGMANIP;innerRF!3| (VECTOR $ |ll|)) |q|
                          (QREFELT $ 64))
                (SPADCALL (CONS #'|ALGMANIP;innerRF!4| (VECTOR $ |ll|)) |k|
                          (QREFELT $ 59))
                (QREFELT $ 65)))))))
      #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 $ 52))) 

(DEFUN |ALGMANIP;rootKerSimp;BoFNniF;11| (|op| |x| |n| $)
  (PROG (|r|)
    (RETURN
     (SEQ
      (LETT |r| (SPADCALL |x| (QREFELT $ 67))
            |ALGMANIP;rootKerSimp;BoFNniF;11|)
      (EXIT
       (COND
        ((QEQCAR |r| 0)
         (SPADCALL (SPADCALL (QCDR |r|) |n| (QREFELT $ 69)) (QREFELT $ 70)))
        ('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=#:G1898 |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 $ 47))
                               . #2#))
                        . #2#)
                  (LETT |n|
                        (SPADCALL (SPADCALL |arg| (QREFELT $ 48))
                                  (QREFELT $ 73))
                        . #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 $ 47))
                                            . #2#))
                                     (QREFELT $ 74))
                           (SEQ (LETT |same| (CONS |kk| |same|) . #2#)
                                (EXIT
                                 (LETT |expo|
                                       (CONS
                                        (SPADCALL
                                         (SPADCALL |arg| (QREFELT $ 48))
                                         (QREFELT $ 73))
                                        |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=#:G1900 #2=#:G1909 |m| #3=#:G1908 |k| |n| |dx| |nx| |k0| |l|
         #4=#:G1907 |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 $ 49)) . #5#)
                (LETT |dx| (SPADCALL |x| (QREFELT $ 37)) . #5#)
                (EXIT
                 (COND
                  ((NULL (CDR |l|))
                   (LETT |x|
                         (SPADCALL (|ALGMANIP;radeval| |nx| |k0| $)
                                   (|ALGMANIP;radeval| |dx| |k0| $)
                                   (QREFELT $ 51))
                         . #5#))
                  ('T
                   (SEQ (LETT |n| (SPADCALL (QCDR |rec|) (QREFELT $ 75)) . #5#)
                        (LETT |k|
                              (SPADCALL (SPADCALL |k0| (QREFELT $ 25))
                                        (LIST
                                         (|SPADfirst|
                                          (SPADCALL |k0| (QREFELT $ 47)))
                                         (SPADCALL |n| (QREFELT $ 76)))
                                        (SPADCALL |k0| (QREFELT $ 77))
                                        (QREFELT $ 78))
                              . #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| $ 81)
                                                       |k|
                                                       (PROG1
                                                           (LETT #1#
                                                                 (QUOTIENT2 |n|
                                                                            |m|)
                                                                 . #5#)
                                                         (|check-subtype|
                                                          (>= #1# 0)
                                                          '(|NonNegativeInteger|)
                                                          #1#))
                                                       (QREFELT $ 82))
                                             #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 $ 83)) |k| $)
                                (|ALGMANIP;radeval|
                                 (SPADCALL |dx| |l| |lv| (QREFELT $ 83)) |k| $)
                                (QREFELT $ 51))
                               . #5#)))))))
           (LETT #4# (CDR #4#) . #5#) #7# G191 (EXIT NIL))
      (EXIT |x|))))) 

(DEFUN |ALGMANIP;rootPower;2F;15| (|x| $)
  (PROG (#1=#:G1913 |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 $ 49)) |k| $)
                    (|ALGMANIP;radeval| (SPADCALL |x| (QREFELT $ 37)) |k| $)
                    (QREFELT $ 51))
                   . #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=#:G1914 |a| |arg|)
    (RETURN
     (SEQ
      (LETT |a|
            (|SPADfirst|
             (LETT |arg| (SPADCALL |k| (QREFELT $ 47))
                   . #2=(|ALGMANIP;radeval|)))
            . #2#)
      (LETT |n|
            (PROG1
                (LETT #1#
                      (SPADCALL (SPADCALL |arg| (QREFELT $ 48)) (QREFELT $ 73))
                      . #2#)
              (|check-subtype| (>= #1# 0) '(|NonNegativeInteger|) #1#))
            . #2#)
      (LETT |ans| (|spadConstant| $ 86) . #2#)
      (LETT |q| (SPADCALL |p| |k| (QREFELT $ 87)) . #2#)
      (SEQ G190
           (COND
            ((NULL (< 0 (LETT |d| (SPADCALL |q| (QREFELT $ 92)) . #2#)))
             (GO G191)))
           (SEQ
            (LETT |term|
                  (SEQ (LETT |g| (GCD |d| |n|) . #2#)
                       (EXIT
                        (COND
                         ((EQL |g| 1)
                          (SPADCALL (|spadConstant| $ 81) |k| |d|
                                    (QREFELT $ 82)))
                         ('T
                          (SPADCALL (|spadConstant| $ 81)
                                    (SPADCALL (SPADCALL |k| (QREFELT $ 25))
                                              (LIST |a|
                                                    (SPADCALL
                                                     (QUOTIENT2 |n| |g|)
                                                     (QREFELT $ 76)))
                                              (SPADCALL |k| (QREFELT $ 77))
                                              (QREFELT $ 78))
                                    (QUOTIENT2 |d| |g|) (QREFELT $ 82))))))
                  . #2#)
            (LETT |ans|
                  (SPADCALL |ans|
                            (SPADCALL
                             (SPADCALL (SPADCALL |q| (QREFELT $ 93))
                                       (QREFELT $ 94))
                             (SPADCALL |term| (QREFELT $ 94)) (QREFELT $ 95))
                            (QREFELT $ 96))
                  . #2#)
            (EXIT (LETT |q| (SPADCALL |q| (QREFELT $ 97)) . #2#)))
           NIL (GO G190) G191 (EXIT NIL))
      (EXIT
       (SPADCALL (SPADCALL (SPADCALL |q| (QREFELT $ 93)) (QREFELT $ 94)) |ans|
                 (QREFELT $ 96))))))) 

(DEFUN |ALGMANIP;inroot| (|op| |x| |n| $)
  (PROG (#1=#:G1952 |qr| |q| |pr| |u| #2=#:G1954 |num|)
    (RETURN
     (SEQ
      (COND ((SPADCALL |x| (|spadConstant| $ 80) (QREFELT $ 74)) |x|)
            (#3='T
             (SEQ
              (EXIT
               (SEQ
                (COND
                 ((NULL
                   (SPADCALL |x|
                             (SPADCALL (|spadConstant| $ 80) (QREFELT $ 98))
                             (QREFELT $ 74)))
                  (SEQ
                   (LETT |num| (SPADCALL |x| (QREFELT $ 49))
                         . #4=(|ALGMANIP;inroot|))
                   (EXIT
                    (COND
                     ((OR (SPADCALL |num| (|spadConstant| $ 81) (QREFELT $ 99))
                          (SPADCALL |num|
                                    (SPADCALL (|spadConstant| $ 81)
                                              (QREFELT $ 101))
                                    (QREFELT $ 99)))
                      (PROGN
                       (LETT #2#
                             (SPADCALL
                              (|ALGMANIP;inroot| |op|
                               (SPADCALL
                                (SPADCALL |num| (SPADCALL |x| (QREFELT $ 37))
                                          (QREFELT $ 100))
                                (QREFELT $ 94))
                               |n| $)
                              (QREFELT $ 36))
                             . #4#)
                       (GO #2#))))))))
                (LETT |u| (SPADCALL |x| |op| (QREFELT $ 104)) . #4#)
                (EXIT
                 (COND
                  ((QEQCAR |u| 1)
                   (SPADCALL |op| (LIST |x| (SPADCALL |n| (QREFELT $ 76)))
                             (QREFELT $ 105)))
                  (#3#
                   (SEQ (LETT |pr| (QCDR |u|) . #4#)
                        (LETT |q|
                              (SPADCALL (QCDR |pr|)
                                        (SPADCALL |n|
                                                  (SPADCALL
                                                   (SPADCALL
                                                    (SPADCALL (QCAR |pr|)
                                                              (QREFELT $ 47))
                                                    (QREFELT $ 48))
                                                   (QREFELT $ 73))
                                                  (QREFELT $ 106))
                                        (QREFELT $ 108))
                              . #4#)
                        (LETT |qr|
                              (DIVIDE2 (SPADCALL |q| (QREFELT $ 109))
                                       (SPADCALL |q| (QREFELT $ 110)))
                              . #4#)
                        (LETT |x|
                              (|SPADfirst|
                               (SPADCALL (QCAR |pr|) (QREFELT $ 47)))
                              . #4#)
                        (EXIT
                         (SPADCALL (SPADCALL |x| (QCAR |qr|) (QREFELT $ 111))
                                   (SPADCALL
                                    (SPADCALL |op| |x|
                                              (PROG1
                                                  (LETT #1#
                                                        (SPADCALL |q|
                                                                  (QREFELT $
                                                                           110))
                                                        . #4#)
                                                (|check-subtype| (>= #1# 0)
                                                                 '(|NonNegativeInteger|)
                                                                 #1#))
                                              (QREFELT $ 72))
                                    (QCDR |qr|) (QREFELT $ 111))
                                   (QREFELT $ 95)))))))))
              #2# (EXIT #2#)))))))) 

(DEFUN |ALGMANIP;sroot| (|k| $)
  (PROG (|pr| #1=#:G1956 |arg|)
    (RETURN
     (SEQ
      (LETT |pr|
            (SPADCALL
             (|SPADfirst|
              (LETT |arg| (SPADCALL |k| (QREFELT $ 47))
                    . #2=(|ALGMANIP;sroot|)))
             (PROG1
                 (LETT #1#
                       (SPADCALL (SPADCALL |arg| (QREFELT $ 48))
                                 (QREFELT $ 73))
                       . #2#)
               (|check-subtype| (>= #1# 0) '(|NonNegativeInteger|) #1#))
             (QREFELT $ 114))
            . #2#)
      (EXIT
       (SPADCALL (QVELT |pr| 1)
                 (SPADCALL (SPADCALL |k| (QREFELT $ 25)) (QVELT |pr| 2)
                           (QVELT |pr| 0) (QREFELT $ 72))
                 (QREFELT $ 95))))))) 

(DEFUN |ALGMANIP;rootSimp;2F;19| (|x| $)
  (PROG (#1=#:G1965 |k| #2=#:G1964 |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 $ 45))))))) 

(DEFUN |AlgebraicManipulations| (&REST #1=#:G1966)
  (PROG ()
    (RETURN
     (PROG (#2=#:G1967)
       (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 116) . #1#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3
                (LETT |pv$|
                      (|buildPredVector| 0 0
                                         (LIST
                                          (AND
                                           (|HasCategory| |#1|
                                                          '(|RetractableTo|
                                                            (|Integer|)))
                                           (|HasCategory| |#1| '(|Comparable|))
                                           (|HasCategory| |#1| '(|GcdDomain|))
                                           (|HasCategory| |#2|
                                                          (LIST
                                                           '|FunctionSpace|
                                                           (|devaluate|
                                                            |#1|))))))
                      . #1#))
      (|haddProp| |$ConstructorCache| '|AlgebraicManipulations|
                  (LIST DV$1 DV$2) (CONS 1 $))
      (|stuffDomainSlots| $)
      (QSETREFV $ 6 |#1|)
      (QSETREFV $ 7 |#2|)
      (SETF |pv$| (QREFELT $ 3))
      (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 $ 72
                           (CONS
                            (|dispatchFunction|
                             |ALGMANIP;rootKerSimp;BoFNniF;11|)
                            $)))
                ('T
                 (QSETREFV $ 72
                           (CONS
                            (|dispatchFunction|
                             |ALGMANIP;rootKerSimp;BoFNniF;12|)
                            $))))
               (QSETREFV $ 84
                         (CONS
                          (|dispatchFunction| |ALGMANIP;rootProduct;2F;14|) $))
               (QSETREFV $ 85
                         (CONS (|dispatchFunction| |ALGMANIP;rootPower;2F;15|)
                               $))
               (QSETREFV $ 115
                         (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!|) (36 . |is?|)
              (|SparseMultivariatePolynomial| 6 11) (42 . |coerce|)
              (|SparseMultivariatePolynomial| 6 22) (47 . |coerce|) (52 . -)
              (58 . |inv|) (63 . |denom|) (|Fraction| 41)
              (|PolynomialCategoryQuotientFunctions| (|IndexedExponents| 11) 11
                                                     6 31 7)
              (68 . |univariate|) (|SparseUnivariatePolynomial| 7)
              (74 . |numer|) |ALGMANIP;ratPoly;FSup;7| (|List| $) (79 . |eval|)
              |ALGMANIP;rootSplit;2F;8| (86 . |argument|) (91 . |second|)
              (96 . |numer|) (101 . |elt|) (108 . /) (114 . <)
              (120 . |kernels|) (|Mapping| 26 11 11) (125 . |sort!|)
              (131 . |setIntersection|) (137 . |member?|) (|Mapping| $ $)
              (143 . |map|) (|SparseUnivariatePolynomial| $) (149 . |minPoly|)
              (154 . |univariate|) (|Mapping| 7 7) (161 . |map|) (167 . |elt|)
              (|Union| 6 '"failed") (173 . |retractIfCan|) (|Integer|)
              (178 . |nthRoot|) (184 . |coerce|) (|NonNegativeInteger|)
              (189 . |rootKerSimp|) (196 . |retract|) (201 . =) (207 . |lcm|)
              (212 . |coerce|) (217 . |height|) (222 . |kernel|) (229 . |One|)
              (233 . |One|) (237 . |One|) (241 . |monomial|) (248 . |eval|)
              (255 . |rootProduct|) (260 . |rootPower|) (265 . |Zero|)
              (269 . |univariate|) (275 . |Zero|) (279 . |Zero|)
              (|SparseUnivariatePolynomial| 31) (283 . |Zero|) (287 . |degree|)
              (292 . |leadingCoefficient|) (297 . |coerce|) (302 . *) (308 . +)
              (314 . |reductum|) (319 . -) (324 . =) (330 . *) (336 . -)
              (|Record| (|:| |var| 22) (|:| |exponent| 68))
              (|Union| 102 '"failed") (341 . |isExpt|) (347 . |kernel|)
              (353 . *) (|Fraction| 68) (359 . /) (365 . |numer|)
              (370 . |denom|) (375 . ^)
              (|Record| (|:| |exponent| 71) (|:| |coef| 7) (|:| |radicand| 7))
              (|PolynomialRoots| (|IndexedExponents| 11) 11 6 31 7)
              (381 . |froot|) (387 . |rootSimp|))
           '#(|rootSplit| 392 |rootSimp| 397 |rootProduct| 402 |rootPower| 407
              |rootKerSimp| 412 |ratPoly| 419 |ratDenom| 424)
           'NIL
           (CONS (|makeByteWordVec2| 1 'NIL)
                 (CONS '#()
                       (CONS '#()
                             (|makeByteWordVec2| 115
                                                 '(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 2 24 26 0 9 30 1 31 0
                                                   11 32 1 7 0 33 34 2 7 0 0 0
                                                   35 1 7 0 0 36 1 7 33 0 37 2
                                                   39 38 7 11 40 1 38 41 0 42 3
                                                   7 0 0 14 44 45 1 11 19 0 47
                                                   1 19 7 0 48 1 7 33 0 49 3 7
                                                   0 24 0 0 50 2 7 0 0 0 51 2
                                                   11 26 0 0 52 1 7 14 0 53 2
                                                   17 0 54 0 55 2 17 0 0 0 56 2
                                                   17 26 11 0 57 2 7 0 58 22 59
                                                   1 7 60 22 61 3 39 41 7 11 41
                                                   62 2 41 0 63 0 64 2 41 7 0 7
                                                   65 1 7 66 0 67 2 6 0 0 68 69
                                                   1 7 0 6 70 3 0 7 24 7 71 72
                                                   1 7 68 0 73 2 7 26 0 0 74 1
                                                   68 0 44 75 1 7 0 68 76 1 11
                                                   71 0 77 3 11 0 24 19 71 78 0
                                                   6 0 79 0 7 0 80 0 31 0 81 3
                                                   31 0 0 11 71 82 3 31 0 0 17
                                                   44 83 1 0 7 7 84 1 0 7 7 85
                                                   0 7 0 86 2 31 60 0 11 87 0 6
                                                   0 88 0 31 0 89 0 90 0 91 1
                                                   90 71 0 92 1 90 31 0 93 1 7
                                                   0 33 94 2 7 0 0 0 95 2 7 0 0
                                                   0 96 1 90 0 0 97 1 7 0 0 98
                                                   2 31 26 0 0 99 2 31 0 0 0
                                                   100 1 31 0 0 101 2 7 103 0
                                                   24 104 2 7 0 24 44 105 2 68
                                                   0 71 0 106 2 107 0 68 68 108
                                                   1 107 68 0 109 1 107 68 0
                                                   110 2 7 0 0 68 111 2 113 112
                                                   7 71 114 1 0 7 7 115 1 0 7 7
                                                   46 1 1 7 7 115 1 1 7 7 84 1
                                                   1 7 7 85 3 1 7 24 7 71 72 1
                                                   0 41 7 43 1 0 7 7 16 2 0 7 7
                                                   7 21 2 0 7 7 17 18 2 0 7 7
                                                   19 20)))))
           '|lookupComplete|)) 
