
(/VERSIONCHECK 2) 

(DEFUN |EFSTRUC;realElem| (|f| |l| $)
  (SPADCALL (|EFSTRUC;smpElem| (SPADCALL |f| (QREFELT $ 18)) |l| $)
            (|EFSTRUC;smpElem| (SPADCALL |f| (QREFELT $ 19)) |l| $)
            (QREFELT $ 15))) 

(DEFUN |EFSTRUC;realElementary;FSF;2| (|f| |x| $)
  (|EFSTRUC;realElem| |f| (LIST |x|) $)) 

(DEFUN |EFSTRUC;realElementary;2F;3| (|f| $)
  (|EFSTRUC;realElem| |f| (SPADCALL |f| (QREFELT $ 23)) $)) 

(DEFUN |EFSTRUC;toY| (|ker| $)
  (PROG (|func| #1=#:G1907 |k| #2=#:G1906)
    (RETURN
     (SEQ
      (PROGN
       (LETT #2# NIL . #3=(|EFSTRUC;toY|))
       (SEQ (LETT |k| NIL . #3#) (LETT #1# |ker| . #3#) G190
            (COND
             ((OR (ATOM #1#) (PROGN (LETT |k| (CAR #1#) . #3#) NIL))
              (GO G191)))
            (SEQ
             (EXIT
              (COND
               ((SEQ (LETT |func| (|EFSTRUC;ktoY| |k| $) . #3#)
                     (EXIT
                      (COND
                       ((SPADCALL |func| (|spadConstant| $ 26) (QREFELT $ 28))
                        'NIL)
                       ('T 'T))))
                (LETT #2# (CONS |func| #2#) . #3#)))))
            (LETT #1# (CDR #1#) . #3#) (GO G190) G191
            (EXIT (NREVERSE0 #2#)))))))) 

(DEFUN |EFSTRUC;toZ| (|ker| $)
  (PROG (|func| #1=#:G1912 |k| #2=#:G1911)
    (RETURN
     (SEQ
      (PROGN
       (LETT #2# NIL . #3=(|EFSTRUC;toZ|))
       (SEQ (LETT |k| NIL . #3#) (LETT #1# |ker| . #3#) G190
            (COND
             ((OR (ATOM #1#) (PROGN (LETT |k| (CAR #1#) . #3#) NIL))
              (GO G191)))
            (SEQ
             (EXIT
              (COND
               ((SEQ (LETT |func| (|EFSTRUC;ktoZ| |k| $) . #3#)
                     (EXIT
                      (COND
                       ((SPADCALL |func| (|spadConstant| $ 26) (QREFELT $ 28))
                        'NIL)
                       ('T 'T))))
                (LETT #2# (CONS |func| #2#) . #3#)))))
            (LETT #1# (CDR #1#) . #3#) (GO G190) G191
            (EXIT (NREVERSE0 #2#)))))))) 

(DEFUN |EFSTRUC;toU| (|ker| $)
  (PROG (|func| #1=#:G1917 |k| #2=#:G1916)
    (RETURN
     (SEQ
      (PROGN
       (LETT #2# NIL . #3=(|EFSTRUC;toU|))
       (SEQ (LETT |k| NIL . #3#) (LETT #1# |ker| . #3#) G190
            (COND
             ((OR (ATOM #1#) (PROGN (LETT |k| (CAR #1#) . #3#) NIL))
              (GO G191)))
            (SEQ
             (EXIT
              (COND
               ((SEQ (LETT |func| (|EFSTRUC;ktoU| |k| $) . #3#)
                     (EXIT
                      (COND
                       ((SPADCALL |func| (|spadConstant| $ 26) (QREFELT $ 28))
                        'NIL)
                       ('T 'T))))
                (LETT #2# (CONS |func| #2#) . #3#)))))
            (LETT #1# (CDR #1#) . #3#) (GO G190) G191
            (EXIT (NREVERSE0 #2#)))))))) 

(DEFUN |EFSTRUC;toV| (|ker| $)
  (PROG (|func| #1=#:G1922 |k| #2=#:G1921)
    (RETURN
     (SEQ
      (PROGN
       (LETT #2# NIL . #3=(|EFSTRUC;toV|))
       (SEQ (LETT |k| NIL . #3#) (LETT #1# |ker| . #3#) G190
            (COND
             ((OR (ATOM #1#) (PROGN (LETT |k| (CAR #1#) . #3#) NIL))
              (GO G191)))
            (SEQ
             (EXIT
              (COND
               ((SEQ (LETT |func| (|EFSTRUC;ktoV| |k| $) . #3#)
                     (EXIT
                      (COND
                       ((SPADCALL |func| (|spadConstant| $ 26) (QREFELT $ 28))
                        'NIL)
                       ('T 'T))))
                (LETT #2# (CONS |func| #2#) . #3#)))))
            (LETT #1# (CDR #1#) . #3#) (GO G190) G191
            (EXIT (NREVERSE0 #2#)))))))) 

(DEFUN |EFSTRUC;rtNormalize| (|f| $) (QVELT (|EFSTRUC;rootNormalize0| |f| $) 0)) 

(DEFUN |EFSTRUC;toR| (|ker| |x| $)
  (PROG ()
    (RETURN
     (SPADCALL (CONS #'|EFSTRUC;toR!0| (VECTOR |x| $)) |ker| (QREFELT $ 37))))) 

(DEFUN |EFSTRUC;toR!0| (|s| $$)
  (PROG ($ |x|)
    (LETT $ (QREFELT $$ 1) . #1=(|EFSTRUC;toR|))
    (LETT |x| (QREFELT $$ 0) . #1#)
    (RETURN
     (PROGN
      (COND
       ((SPADCALL |s| '|nthRoot| (QREFELT $ 30))
        (SPADCALL (SPADCALL (SPADCALL |s| (QREFELT $ 32)) (QREFELT $ 33)) |x|
                  (QREFELT $ 28)))
       ('T (|spadConstant| $ 34))))))) 

(DEFUN |EFSTRUC;tanQ;F2F;10| (|c| |x| $)
  (PROG (#1=#:G1936)
    (RETURN
     (SPADCALL
      (SPADCALL
       (SPADCALL
        (SPADCALL |x|
                  (PROG1
                      (LETT #1# (SPADCALL |c| (QREFELT $ 39))
                            |EFSTRUC;tanQ;F2F;10|)
                    (|check-subtype| (> #1# 0) '(|PositiveInteger|) #1#))
                  (QREFELT $ 43))
        (QREFELT $ 45))
       (QREFELT $ 47))
      (SPADCALL |c| (QREFELT $ 48)) (QREFELT $ 49))))) 

(DEFUN |EFSTRUC;tanQ;F2F;11| (|c| |x| $)
  (PROG (#1=#:G1939)
    (RETURN
     (SPADCALL
      (SPADCALL
       (SPADCALL |x|
                 (PROG1
                     (LETT #1# (SPADCALL |c| (QREFELT $ 39))
                           |EFSTRUC;tanQ;F2F;11|)
                   (|check-subtype| (> #1# 0) '(|PositiveInteger|) #1#))
                 (QREFELT $ 43))
       (QREFELT $ 45))
      (SPADCALL |c| (QREFELT $ 48)) (QREFELT $ 49))))) 

(DEFUN |EFSTRUC;tanSum| (|c| |l| $)
  (PROG (#1=#:G1949 |r| |k|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |k| (SPADCALL |c| (QREFELT $ 16) (QREFELT $ 15))
              . #2=(|EFSTRUC;tanSum|))
        (SEQ (LETT |r| (SPADCALL |k| (QREFELT $ 52)) . #2#)
             (EXIT
              (COND
               ((QEQCAR |r| 0)
                (COND
                 ((ODDP (QCDR |r|))
                  (PROGN
                   (LETT #1#
                         (SPADCALL
                          (SPADCALL (SPADCALL |l| (QREFELT $ 53))
                                    (QREFELT $ 54))
                          (QREFELT $ 14))
                         . #2#)
                   (GO #1#))))))))
        (EXIT
         (SPADCALL (CONS (SPADCALL |c| (QREFELT $ 55)) |l|) (QREFELT $ 53)))))
      #1# (EXIT #1#))))) 

(DEFUN |EFSTRUC;rootNormalize0| (|f| $)
  (PROG (#1=#:G1967 #2=#:G1971 |rn| |rec| |u| |i| #3=#:G1972 |kk| |n| |ker|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |ker|
              (SPADCALL (CONS #'|EFSTRUC;rootNormalize0!0| $)
                        (SPADCALL |f| (QREFELT $ 58)) (QREFELT $ 59))
              . #4=(|EFSTRUC;rootNormalize0|))
        (EXIT
         (COND ((NULL |ker|) (VECTOR |f| NIL NIL))
               (#5='T
                (SEQ (LETT |n| (- (LENGTH |ker|) 1) . #4#)
                     (EXIT
                      (COND ((< |n| 1) (VECTOR |f| NIL NIL))
                            (#5#
                             (SEQ
                              (SEQ
                               (EXIT
                                (SEQ (LETT |kk| NIL . #4#)
                                     (LETT #3# (CDR |ker|) . #4#)
                                     (LETT |i| 1 . #4#) G190
                                     (COND
                                      ((OR (QSGREATERP |i| |n|) (ATOM #3#)
                                           (PROGN
                                            (LETT |kk| (CAR #3#) . #4#)
                                            NIL))
                                       (GO G191)))
                                     (SEQ
                                      (LETT |u|
                                            (|EFSTRUC;rootKernelNormalize| |f|
                                             (SPADCALL |ker| |i|
                                                       (QREFELT $ 63))
                                             |kk| $)
                                            . #4#)
                                      (EXIT
                                       (COND
                                        ((QEQCAR |u| 0)
                                         (PROGN
                                          (LETT #1#
                                                (SEQ
                                                 (LETT |rec| (QCDR |u|) . #4#)
                                                 (LETT |rn|
                                                       (|EFSTRUC;rootNormalize0|
                                                        (QVELT |rec| 0) $)
                                                       . #4#)
                                                 (EXIT
                                                  (PROGN
                                                   (LETT #2#
                                                         (VECTOR (QVELT |rn| 0)
                                                                 (SPADCALL
                                                                  (QVELT |rec|
                                                                         1)
                                                                  (QVELT |rn|
                                                                         1)
                                                                  (QREFELT $
                                                                           64))
                                                                 (SPADCALL
                                                                  (QVELT |rec|
                                                                         2)
                                                                  (QVELT |rn|
                                                                         2)
                                                                  (QREFELT $
                                                                           65)))
                                                         . #4#)
                                                   (GO #2#))))
                                                . #4#)
                                          (GO #1#))))))
                                     (LETT |i|
                                           (PROG1 (QSADD1 |i|)
                                             (LETT #3# (CDR #3#) . #4#))
                                           . #4#)
                                     (GO G190) G191 (EXIT NIL)))
                               #1# (EXIT #1#))
                              (EXIT (VECTOR |f| NIL NIL))))))))))))
      #2# (EXIT #2#))))) 

(DEFUN |EFSTRUC;rootNormalize0!0| (|x| $)
  (COND
   ((SPADCALL |x| '|nthRoot| (QREFELT $ 30))
    (SPADCALL
     (SPADCALL (SPADCALL (SPADCALL |x| (QREFELT $ 32)) (QREFELT $ 33))
               (QREFELT $ 23))
     (QREFELT $ 56)))
   ('T (|spadConstant| $ 34)))) 

(DEFUN |EFSTRUC;findQRelation| (|lv| |lpar| |lk| |ker| $)
  (PROG (#1=#:G1988 |u| |j| #2=#:G1996 |k| |i| #3=#:G1995 |var| |mat|
         |isconstant| #4=#:G1994 |v| |lvv| |m| #5=#:G1993 |n|)
    (RETURN
     (SEQ
      (COND ((NULL |lk|) (CONS 2 'T))
            (#6='T
             (SEQ (LETT |isconstant| 'T . #7=(|EFSTRUC;findQRelation|))
                  (LETT |m| (LENGTH |lv|) . #7#) (LETT |lvv| |lv| . #7#)
                  (LETT |n| (LENGTH |lk|) . #7#)
                  (LETT |v| (MAKEARR1 |m| (|spadConstant| $ 26)) . #7#)
                  (SEQ (LETT |var| NIL . #7#) (LETT #5# |lv| . #7#)
                       (LETT |i| 1 . #7#) G190
                       (COND
                        ((OR (QSGREATERP |i| |m|) (ATOM #5#)
                             (PROGN (LETT |var| (CAR #5#) . #7#) NIL))
                         #8=(GO G191)))
                       (SEQ
                        (SPADCALL |v| |i| (SPADCALL |ker| |var| (QREFELT $ 66))
                                  (QREFELT $ 68))
                        (EXIT
                         (COND
                          (|isconstant|
                           (LETT |isconstant|
                                 (SPADCALL (SPADCALL |v| |i| (QREFELT $ 69))
                                           (|spadConstant| $ 26)
                                           (QREFELT $ 28))
                                 . #7#)))))
                       (LETT |i|
                             (PROG1 (QSADD1 |i|) (LETT #5# (CDR #5#) . #7#))
                             . #7#)
                       #9=(GO G190) G191 (EXIT NIL))
                  (COND
                   (|isconstant|
                    (SEQ (LETT |m| (LENGTH |lpar|) . #7#)
                         (LETT |lvv| |lpar| . #7#)
                         (LETT |v| (MAKEARR1 |m| (|spadConstant| $ 26)) . #7#)
                         (EXIT
                          (SEQ (LETT |var| NIL . #7#) (LETT #4# |lpar| . #7#)
                               (LETT |i| 1 . #7#) G190
                               (COND
                                ((OR (QSGREATERP |i| |m|) (ATOM #4#)
                                     (PROGN (LETT |var| (CAR #4#) . #7#) NIL))
                                 #8#))
                               (SEQ
                                (SPADCALL |v| |i|
                                          (SPADCALL |ker| |var| (QREFELT $ 66))
                                          (QREFELT $ 68))
                                (EXIT
                                 (COND
                                  (|isconstant|
                                   (LETT |isconstant|
                                         (SPADCALL
                                          (SPADCALL |v| |i| (QREFELT $ 69))
                                          (|spadConstant| $ 26) (QREFELT $ 28))
                                         . #7#)))))
                               (LETT |i|
                                     (PROG1 (QSADD1 |i|)
                                       (LETT #4# (CDR #4#) . #7#))
                                     . #7#)
                               #9# G191 (EXIT NIL))))))
                  (EXIT
                   (COND (|isconstant| (|error| "Hidden constant detected"))
                         (#6#
                          (SEQ
                           (LETT |mat|
                                 (SPADCALL |m| |n| (|spadConstant| $ 26)
                                           (QREFELT $ 71))
                                 . #7#)
                           (SEQ (LETT |var| NIL . #7#) (LETT #3# |lvv| . #7#)
                                (LETT |i| 1 . #7#) G190
                                (COND
                                 ((OR (QSGREATERP |i| |m|) (ATOM #3#)
                                      (PROGN (LETT |var| (CAR #3#) . #7#) NIL))
                                  #8#))
                                (SEQ
                                 (EXIT
                                  (SEQ (LETT |k| NIL . #7#)
                                       (LETT #2# |lk| . #7#) (LETT |j| 1 . #7#)
                                       G190
                                       (COND
                                        ((OR (QSGREATERP |j| |n|) (ATOM #2#)
                                             (PROGN
                                              (LETT |k| (CAR #2#) . #7#)
                                              NIL))
                                         #8#))
                                       (SEQ
                                        (EXIT
                                         (SPADCALL |mat| |i| |j|
                                                   (SPADCALL |k| |var|
                                                             (QREFELT $ 66))
                                                   (QREFELT $ 72))))
                                       (LETT |j|
                                             (PROG1 (QSADD1 |j|)
                                               (LETT #2# (CDR #2#) . #7#))
                                             . #7#)
                                       #9# G191 (EXIT NIL))))
                                (LETT |i|
                                      (PROG1 (QSADD1 |i|)
                                        (LETT #3# (CDR #3#) . #7#))
                                      . #7#)
                                #9# G191 (EXIT NIL))
                           (EXIT
                            (COND
                             ((QEQCAR
                               (LETT |u| (SPADCALL |mat| |v| (QREFELT $ 75))
                                     . #7#)
                               0)
                              (CONS 0
                                    (PROG2
                                        (LETT #1# |u| . #7#)
                                        (QCDR #1#)
                                      (|check-union| (QEQCAR #1# 0)
                                                     (|Vector|
                                                      (|Fraction| (|Integer|)))
                                                     #1#))))
                             (#6# (CONS 2 'T))))))))))))))) 

(DEFUN |EFSTRUC;findLinearRelation1| (|lk| |ker| $)
  (PROG (#1=#:G2000 |u| |j| #2=#:G2004 |k| |v| |mat| |n|)
    (RETURN
     (SEQ
      (COND ((NULL |lk|) (CONS 2 'T))
            (#3='T
             (SEQ (LETT |n| (LENGTH |lk|) . #4=(|EFSTRUC;findLinearRelation1|))
                  (LETT |mat|
                        (SPADCALL 1 |n| (|spadConstant| $ 26) (QREFELT $ 71))
                        . #4#)
                  (LETT |v| (MAKEARR1 1 |ker|) . #4#)
                  (SEQ (LETT |k| NIL . #4#) (LETT #2# |lk| . #4#)
                       (LETT |j| 1 . #4#) G190
                       (COND
                        ((OR (QSGREATERP |j| |n|) (ATOM #2#)
                             (PROGN (LETT |k| (CAR #2#) . #4#) NIL))
                         (GO G191)))
                       (SEQ
                        (EXIT
                         (COND
                          ((NULL (SPADCALL |k| (QREFELT $ 23)))
                           (SPADCALL |mat| 1 |j| |k| (QREFELT $ 72)))
                          ('T
                           (SPADCALL |mat| 1 |j| (|spadConstant| $ 26)
                                     (QREFELT $ 72))))))
                       (LETT |j|
                             (PROG1 (QSADD1 |j|) (LETT #2# (CDR #2#) . #4#))
                             . #4#)
                       (GO G190) G191 (EXIT NIL))
                  (EXIT
                   (COND
                    ((QEQCAR
                      (LETT |u| (SPADCALL |mat| |v| (QREFELT $ 75)) . #4#) 0)
                     (CONS 0
                           (PROG2
                               (LETT #1# |u| . #4#)
                               (QCDR #1#)
                             (|check-union| (QEQCAR #1# 0)
                                            (|Vector| (|Fraction| (|Integer|)))
                                            #1#))))
                    (#3# (CONS 2 'T))))))))))) 

(DEFUN |EFSTRUC;transkers| (|x| $)
  (PROG (#1=#:G2009 |k| #2=#:G2008)
    (RETURN
     (SEQ
      (PROGN
       (LETT #2# NIL . #3=(|EFSTRUC;transkers|))
       (SEQ (LETT |k| NIL . #3#) (LETT #1# |x| . #3#) G190
            (COND
             ((OR (ATOM #1#) (PROGN (LETT |k| (CAR #1#) . #3#) NIL))
              (GO G191)))
            (SEQ
             (EXIT
              (COND
               ((COND
                 ((SPADCALL (SPADCALL |k| (QREFELT $ 79)) (QREFELT $ 77)
                            (QREFELT $ 80))
                  'NIL)
                 ('T 'T))
                (LETT #2# (CONS |k| #2#) . #3#)))))
            (LETT #1# (CDR #1#) . #3#) (GO G190) G191
            (EXIT (NREVERSE0 #2#)))))))) 

(DEFUN |EFSTRUC;ktoQ| (|ker| $)
  (PROG (|qu| |z|)
    (RETURN
     (SEQ
      (COND
       ((SPADCALL |ker| '|log| (QREFELT $ 30))
        (COND
         ((|HasCategory| (QREFELT $ 7)
                         (LIST '|RetractableTo|
                               (LIST '|Fraction| '(|Integer|))))
          (EXIT
           (SEQ
            (LETT |z|
                  (SPADCALL (SPADCALL |ker| (QREFELT $ 32)) 1 (QREFELT $ 81))
                  . #1=(|EFSTRUC;ktoQ|))
            (LETT |qu| (SPADCALL |z| (QREFELT $ 83)) . #1#)
            (EXIT
             (COND ((QEQCAR |qu| 0) (QCDR |qu|))
                   ('T (|spadConstant| $ 76))))))))))
      (EXIT (|spadConstant| $ 76)))))) 

(DEFUN |EFSTRUC;toQ| (|lk| $)
  (PROG (#1=#:G2024 |k| #2=#:G2023)
    (RETURN
     (SEQ
      (PROGN
       (LETT #2# NIL . #3=(|EFSTRUC;toQ|))
       (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
              (COND
               ((COND ((SPADCALL |k| '|log| (QREFELT $ 30)) 'T)
                      ('T (SPADCALL |k| '|exp| (QREFELT $ 30))))
                (LETT #2# (CONS (|EFSTRUC;ktoQ| |k| $) #2#) . #3#)))))
            (LETT #1# (CDR #1#) . #3#) (GO G190) G191
            (EXIT (NREVERSE0 #2#)))))))) 

(DEFUN |EFSTRUC;findLinearRelation2| (|lk| |lz| |ker| $)
  (PROG (|nz| |ly| #1=#:G2055 |x| #2=#:G2054 #3=#:G2053 #4=#:G2052 |lpars1f|
         #5=#:G2051 |s| #6=#:G2050 |lpars1| #7=#:G2049 |k| #8=#:G2048 |lpars0|
         #9=#:G2026 |u| |q| |zkers| |z|)
    (RETURN
     (SEQ
      (LETT |z| (SPADCALL (SPADCALL |ker| (QREFELT $ 32)) 1 (QREFELT $ 81))
            . #10=(|EFSTRUC;findLinearRelation2|))
      (LETT |zkers| (|EFSTRUC;transkers| (SPADCALL |z| (QREFELT $ 84)) $)
            . #10#)
      (EXIT
       (COND
        ((NULL |zkers|)
         (SEQ (LETT |q| (|EFSTRUC;ktoQ| |ker| $) . #10#)
              (COND
               ((NULL (SPADCALL |q| (|spadConstant| $ 76) (QREFELT $ 85)))
                (COND
                 ((NULL
                   (SPADCALL |q|
                             (SPADCALL (|spadConstant| $ 76) (QREFELT $ 86))
                             (QREFELT $ 85)))
                  (EXIT
                   (COND
                    ((QEQCAR
                      (LETT |u|
                            (SPADCALL (|EFSTRUC;toQ| |lk| $) |q|
                                      (QREFELT $ 89))
                            . #10#)
                      0)
                     (CONS 0
                           (PROG2
                               (LETT #9# |u| . #10#)
                               (QCDR #9#)
                             (|check-union| (QEQCAR #9# 0)
                                            (|Vector| (|Fraction| (|Integer|)))
                                            #9#))))
                    (#11='T (CONS 2 'T))))))))
              (EXIT (CONS 2 'T))))
        (#11#
         (SEQ (LETT |lpars0| (|EFSTRUC;transkers| |lk| $) . #10#)
              (LETT |lpars1|
                    (PROGN
                     (LETT #8# NIL . #10#)
                     (SEQ (LETT |k| NIL . #10#) (LETT #7# |lpars0| . #10#) G190
                          (COND
                           ((OR (ATOM #7#)
                                (PROGN (LETT |k| (CAR #7#) . #10#) NIL))
                            #12=(GO G191)))
                          (SEQ
                           (EXIT
                            (LETT #8# (CONS (SPADCALL (QREFELT $ 90)) #8#)
                                  . #10#)))
                          (LETT #7# (CDR #7#) . #10#) #13=(GO G190) G191
                          (EXIT (NREVERSE0 #8#))))
                    . #10#)
              (LETT |lpars1f|
                    (PROGN
                     (LETT #6# NIL . #10#)
                     (SEQ (LETT |s| NIL . #10#) (LETT #5# |lpars1| . #10#) G190
                          (COND
                           ((OR (ATOM #5#)
                                (PROGN (LETT |s| (CAR #5#) . #10#) NIL))
                            #12#))
                          (SEQ
                           (EXIT
                            (LETT #6#
                                  (CONS
                                   (SPADCALL (SPADCALL |s| (QREFELT $ 91))
                                             (QREFELT $ 93))
                                   #6#)
                                  . #10#)))
                          (LETT #5# (CDR #5#) . #10#) #13# G191
                          (EXIT (NREVERSE0 #6#))))
                    . #10#)
              (COND
               ((SPADCALL |ker| '|log| (QREFELT $ 30))
                (SEQ
                 (LETT |ly|
                       (PROGN
                        (LETT #4# NIL . #10#)
                        (SEQ (LETT |x| NIL . #10#) (LETT #3# |lz| . #10#) G190
                             (COND
                              ((OR (ATOM #3#)
                                   (PROGN (LETT |x| (CAR #3#) . #10#) NIL))
                               #12#))
                             (SEQ
                              (EXIT
                               (LETT #4#
                                     (CONS
                                      (SPADCALL
                                       (SPADCALL |x| |lpars0| |lpars1f|
                                                 (QREFELT $ 95))
                                       (QREFELT $ 96))
                                      #4#)
                                     . #10#)))
                             (LETT #3# (CDR #3#) . #10#) #13# G191
                             (EXIT (NREVERSE0 #4#))))
                       . #10#)
                 (EXIT
                  (LETT |nz|
                        (SPADCALL
                         (SPADCALL |z| |lpars0| |lpars1f| (QREFELT $ 95))
                         (QREFELT $ 96))
                        . #10#))))
               ((NULL (SPADCALL |ker| '|atan| (QREFELT $ 30)))
                (|error| "findLinearRelation2: kernel should be log or atan"))
               ('T
                (SEQ
                 (LETT |ly|
                       (PROGN
                        (LETT #2# NIL . #10#)
                        (SEQ (LETT |x| NIL . #10#) (LETT #1# |lz| . #10#) G190
                             (COND
                              ((OR (ATOM #1#)
                                   (PROGN (LETT |x| (CAR #1#) . #10#) NIL))
                               #12#))
                             (SEQ
                              (EXIT
                               (LETT #2#
                                     (CONS
                                      (SPADCALL
                                       (SPADCALL |x| |lpars0| |lpars1f|
                                                 (QREFELT $ 95))
                                       (QREFELT $ 97))
                                      #2#)
                                     . #10#)))
                             (LETT #1# (CDR #1#) . #10#) #13# G191
                             (EXIT (NREVERSE0 #2#))))
                       . #10#)
                 (EXIT
                  (LETT |nz|
                        (SPADCALL
                         (SPADCALL |z| |lpars0| |lpars1f| (QREFELT $ 95))
                         (QREFELT $ 97))
                        . #10#)))))
              (EXIT (|EFSTRUC;findQRelation| NIL |lpars1| |ly| |nz| $)))))))))) 

(DEFUN |EFSTRUC;findRelation| (|lv| |lpar| |lk| |ker| $)
  (PROG (#1=#:G2075 |x| #2=#:G2074)
    (RETURN
     (SEQ
      (COND
       ((OR (SPADCALL |ker| '|log| (QREFELT $ 30))
            (SPADCALL |ker| '|exp| (QREFELT $ 30)))
        (COND
         ((NULL (SPADCALL (SPADCALL |ker| (QREFELT $ 93)) (QREFELT $ 23)))
          (COND
           ((SPADCALL |ker| '|exp| (QREFELT $ 30))
            (|EFSTRUC;findLinearRelation1| (|EFSTRUC;toY| |lk| $)
             (|EFSTRUC;ktoY| |ker| $) $))
           (#3='T
            (|EFSTRUC;findLinearRelation2| |lk| (|EFSTRUC;toZ| |lk| $) |ker|
             $))))
         (#3#
          (|EFSTRUC;findQRelation| |lv| |lpar| (|EFSTRUC;toY| |lk| $)
           (|EFSTRUC;ktoY| |ker| $) $))))
       ((OR (SPADCALL |ker| '|atan| (QREFELT $ 30))
            (SPADCALL |ker| '|tan| (QREFELT $ 30)))
        (COND
         ((NULL (SPADCALL (SPADCALL |ker| (QREFELT $ 93)) (QREFELT $ 23)))
          (COND
           ((SPADCALL |ker| '|tan| (QREFELT $ 30))
            (|EFSTRUC;findLinearRelation1| (|EFSTRUC;toU| |lk| $)
             (|EFSTRUC;ktoU| |ker| $) $))
           (#3#
            (|EFSTRUC;findLinearRelation2| |lk| (|EFSTRUC;toV| |lk| $) |ker|
             $))))
         (#3#
          (|EFSTRUC;findQRelation| |lv| |lpar| (|EFSTRUC;toU| |lk| $)
           (|EFSTRUC;ktoU| |ker| $) $))))
       ('T
        (COND
         ((SPADCALL |ker| '|nthRoot| (QREFELT $ 30))
          (|EFSTRUC;rootDep| |lk| |ker| $))
         (#3#
          (SEQ
           (COND
            ((QREFELT $ 10)
             (COND
              ((SPADCALL |ker| '|factorial| (QREFELT $ 30))
               (EXIT
                (|EFSTRUC;factdeprel|
                 (PROGN
                  (LETT #2# NIL . #4=(|EFSTRUC;findRelation|))
                  (SEQ (LETT |x| NIL . #4#) (LETT #1# |lk| . #4#) G190
                       (COND
                        ((OR (ATOM #1#) (PROGN (LETT |x| (CAR #1#) . #4#) NIL))
                         (GO G191)))
                       (SEQ
                        (EXIT
                         (COND
                          ((COND
                            ((SPADCALL |x| '|factorial| (QREFELT $ 30))
                             (COND ((SPADCALL |x| |ker| (QREFELT $ 98)) 'NIL)
                                   (#3# 'T)))
                            (#3# 'NIL))
                           (LETT #2# (CONS |x| #2#) . #4#)))))
                       (LETT #1# (CDR #1#) . #4#) (GO G190) G191
                       (EXIT (NREVERSE0 #2#))))
                 |ker| $))))))
           (EXIT (CONS 2 'T))))))))))) 

(DEFUN |EFSTRUC;ktoY| (|k| $)
  (COND ((SPADCALL |k| '|log| (QREFELT $ 30)) (SPADCALL |k| (QREFELT $ 93)))
        ((SPADCALL |k| '|exp| (QREFELT $ 30))
         (|SPADfirst| (SPADCALL |k| (QREFELT $ 32))))
        ('T (|spadConstant| $ 26)))) 

(DEFUN |EFSTRUC;ktoZ| (|k| $)
  (COND
   ((SPADCALL |k| '|log| (QREFELT $ 30))
    (|SPADfirst| (SPADCALL |k| (QREFELT $ 32))))
   ((SPADCALL |k| '|exp| (QREFELT $ 30)) (SPADCALL |k| (QREFELT $ 93)))
   ('T (|spadConstant| $ 26)))) 

(DEFUN |EFSTRUC;ktoU| (|k| $)
  (COND ((SPADCALL |k| '|atan| (QREFELT $ 30)) (SPADCALL |k| (QREFELT $ 93)))
        ((SPADCALL |k| '|tan| (QREFELT $ 30))
         (|SPADfirst| (SPADCALL |k| (QREFELT $ 32))))
        ('T (|spadConstant| $ 26)))) 

(DEFUN |EFSTRUC;ktoV| (|k| $)
  (COND ((SPADCALL |k| '|tan| (QREFELT $ 30)) (SPADCALL |k| (QREFELT $ 93)))
        ((SPADCALL |k| '|atan| (QREFELT $ 30))
         (|SPADfirst| (SPADCALL |k| (QREFELT $ 32))))
        ('T (|spadConstant| $ 26)))) 

(DEFUN |EFSTRUC;smpElem| (|p| |l| $)
  (PROG ()
    (RETURN
     (SPADCALL (CONS #'|EFSTRUC;smpElem!0| (VECTOR $ |l|)) (ELT $ 99) |p|
               (QREFELT $ 104))))) 

(DEFUN |EFSTRUC;smpElem!0| (|x| $$)
  (PROG (|l| $)
    (LETT |l| (QREFELT $$ 1) . #1=(|EFSTRUC;smpElem|))
    (LETT $ (QREFELT $$ 0) . #1#)
    (RETURN (PROGN (|EFSTRUC;k2Elem| |x| |l| $))))) 

(DEFUN |EFSTRUC;k2Elem| (|k| |l| $)
  (PROG (|tz2| |iez| |ez| |op| |z| |args| #1=#:G2144 |a| #2=#:G2143 #3=#:G2142
         |v| #4=#:G2141 |kf|)
    (RETURN
     (SEQ (LETT |kf| (SPADCALL |k| (QREFELT $ 93)) . #5=(|EFSTRUC;k2Elem|))
          (COND
           ((NULL (NULL |l|))
            (COND
             ((NULL
               (PROGN
                (LETT #4# NIL . #5#)
                (SEQ (LETT |v| NIL . #5#)
                     (LETT #3# (SPADCALL |kf| (QREFELT $ 23)) . #5#) G190
                     (COND
                      ((OR (ATOM #3#) (PROGN (LETT |v| (CAR #3#) . #5#) NIL))
                       #6=(GO G191)))
                     (SEQ
                      (EXIT
                       (COND
                        ((SPADCALL |v| |l| (QREFELT $ 105))
                         (LETT #4# (CONS |v| #4#) . #5#)))))
                     (LETT #3# (CDR #3#) . #5#) #7=(GO G190) G191
                     (EXIT (NREVERSE0 #4#)))))
              (EXIT |kf|)))))
          (EXIT
           (COND
            ((NULL
              (LETT |args|
                    (PROGN
                     (LETT #2# NIL . #5#)
                     (SEQ (LETT |a| NIL . #5#)
                          (LETT #1# (SPADCALL |k| (QREFELT $ 32)) . #5#) G190
                          (COND
                           ((OR (ATOM #1#)
                                (PROGN (LETT |a| (CAR #1#) . #5#) NIL))
                            #6#))
                          (SEQ
                           (EXIT
                            (LETT #2# (CONS (|EFSTRUC;realElem| |a| |l| $) #2#)
                                  . #5#)))
                          (LETT #1# (CDR #1#) . #5#) #7# G191
                          (EXIT (NREVERSE0 #2#))))
                    . #5#))
             |kf|)
            (#8='T
             (SEQ (LETT |z| (|SPADfirst| |args|) . #5#)
                  (EXIT
                   (COND
                    ((SPADCALL |k| '|%power| (QREFELT $ 30))
                     (COND
                      ((SPADCALL |z| (QREFELT $ 106)) (|spadConstant| $ 26))
                      (#8#
                       (SPADCALL
                        (SPADCALL (SPADCALL |args| (QREFELT $ 107))
                                  (SPADCALL |z| (QREFELT $ 96))
                                  (QREFELT $ 108))
                        (QREFELT $ 109)))))
                    ((SPADCALL |k| '|cot| (QREFELT $ 30))
                     (SPADCALL (SPADCALL |z| (QREFELT $ 55)) (QREFELT $ 54)))
                    ((SPADCALL |k| '|acot| (QREFELT $ 30))
                     (SPADCALL (SPADCALL |z| (QREFELT $ 54)) (QREFELT $ 97)))
                    ((SPADCALL |k| '|asin| (QREFELT $ 30))
                     (SPADCALL
                      (SPADCALL |z|
                                (SPADCALL
                                 (SPADCALL (|spadConstant| $ 61)
                                           (SPADCALL |z| 2 (QREFELT $ 110))
                                           (QREFELT $ 111))
                                 (QREFELT $ 112))
                                (QREFELT $ 15))
                      (QREFELT $ 97)))
                    ((SPADCALL |k| '|acos| (QREFELT $ 30))
                     (SPADCALL
                      (SPADCALL
                       (SPADCALL
                        (SPADCALL (|spadConstant| $ 61)
                                  (SPADCALL |z| 2 (QREFELT $ 110))
                                  (QREFELT $ 111))
                        (QREFELT $ 112))
                       |z| (QREFELT $ 15))
                      (QREFELT $ 97)))
                    ((SPADCALL |k| '|asec| (QREFELT $ 30))
                     (SPADCALL
                      (SPADCALL
                       (SPADCALL (|spadConstant| $ 61)
                                 (SPADCALL |z| 2 (QREFELT $ 110))
                                 (QREFELT $ 111))
                       (QREFELT $ 112))
                      (QREFELT $ 97)))
                    ((SPADCALL |k| '|acsc| (QREFELT $ 30))
                     (SPADCALL
                      (SPADCALL
                       (SPADCALL
                        (SPADCALL (|spadConstant| $ 61)
                                  (SPADCALL |z| 2 (QREFELT $ 110))
                                  (QREFELT $ 111))
                        (QREFELT $ 112))
                       (QREFELT $ 54))
                      (QREFELT $ 97)))
                    ((SPADCALL |k| '|asinh| (QREFELT $ 30))
                     (SPADCALL
                      (SPADCALL
                       (SPADCALL
                        (SPADCALL (|spadConstant| $ 61)
                                  (SPADCALL |z| 2 (QREFELT $ 110))
                                  (QREFELT $ 113))
                        (QREFELT $ 112))
                       |z| (QREFELT $ 113))
                      (QREFELT $ 96)))
                    ((SPADCALL |k| '|acosh| (QREFELT $ 30))
                     (SPADCALL
                      (SPADCALL
                       (SPADCALL
                        (SPADCALL (SPADCALL |z| 2 (QREFELT $ 110))
                                  (|spadConstant| $ 61) (QREFELT $ 111))
                        (QREFELT $ 112))
                       |z| (QREFELT $ 113))
                      (QREFELT $ 96)))
                    ((SPADCALL |k| '|atanh| (QREFELT $ 30))
                     (SPADCALL
                      (SPADCALL
                       (SPADCALL
                        (SPADCALL |z| (|spadConstant| $ 61) (QREFELT $ 113))
                        (SPADCALL (|spadConstant| $ 61) |z| (QREFELT $ 111))
                        (QREFELT $ 15))
                       (QREFELT $ 96))
                      (SPADCALL 2 (QREFELT $ 13)) (QREFELT $ 15)))
                    ((SPADCALL |k| '|acoth| (QREFELT $ 30))
                     (SPADCALL
                      (SPADCALL
                       (SPADCALL
                        (SPADCALL |z| (|spadConstant| $ 61) (QREFELT $ 113))
                        (SPADCALL |z| (|spadConstant| $ 61) (QREFELT $ 111))
                        (QREFELT $ 15))
                       (QREFELT $ 96))
                      (SPADCALL 2 (QREFELT $ 13)) (QREFELT $ 15)))
                    ((SPADCALL |k| '|asech| (QREFELT $ 30))
                     (SPADCALL
                      (SPADCALL (SPADCALL |z| (QREFELT $ 54))
                                (SPADCALL
                                 (SPADCALL
                                  (SPADCALL (SPADCALL |z| 2 (QREFELT $ 110))
                                            (QREFELT $ 54))
                                  (|spadConstant| $ 61) (QREFELT $ 111))
                                 (QREFELT $ 112))
                                (QREFELT $ 113))
                      (QREFELT $ 96)))
                    ((SPADCALL |k| '|acsch| (QREFELT $ 30))
                     (SPADCALL
                      (SPADCALL (SPADCALL |z| (QREFELT $ 54))
                                (SPADCALL
                                 (SPADCALL (|spadConstant| $ 61)
                                           (SPADCALL
                                            (SPADCALL |z| 2 (QREFELT $ 110))
                                            (QREFELT $ 54))
                                           (QREFELT $ 113))
                                 (QREFELT $ 112))
                                (QREFELT $ 113))
                      (QREFELT $ 96)))
                    ((OR (SPADCALL |k| '|%paren| (QREFELT $ 30))
                         (SPADCALL |k| '|%box| (QREFELT $ 30)))
                     (COND ((NULL (CDR |args|)) |z|) (#8# |kf|)))
                    ('T
                     (SEQ
                      (COND
                       ((SPADCALL
                         (LETT |op| (SPADCALL |k| (QREFELT $ 79)) . #5#)
                         (QREFELT $ 8) (QREFELT $ 80))
                        (LETT |iez|
                              (SPADCALL
                               (LETT |ez| (SPADCALL |z| (QREFELT $ 109)) . #5#)
                               (QREFELT $ 54))
                              . #5#)))
                      (EXIT
                       (COND
                        ((SPADCALL |k| '|sinh| (QREFELT $ 30))
                         (SPADCALL (SPADCALL |ez| |iez| (QREFELT $ 111))
                                   (SPADCALL 2 (QREFELT $ 13)) (QREFELT $ 15)))
                        ((SPADCALL |k| '|cosh| (QREFELT $ 30))
                         (SPADCALL (SPADCALL |ez| |iez| (QREFELT $ 113))
                                   (SPADCALL 2 (QREFELT $ 13)) (QREFELT $ 15)))
                        ((SPADCALL |k| '|tanh| (QREFELT $ 30))
                         (SPADCALL (SPADCALL |ez| |iez| (QREFELT $ 111))
                                   (SPADCALL |ez| |iez| (QREFELT $ 113))
                                   (QREFELT $ 15)))
                        ((SPADCALL |k| '|coth| (QREFELT $ 30))
                         (SPADCALL (SPADCALL |ez| |iez| (QREFELT $ 113))
                                   (SPADCALL |ez| |iez| (QREFELT $ 111))
                                   (QREFELT $ 15)))
                        ((SPADCALL |k| '|sech| (QREFELT $ 30))
                         (SPADCALL 2
                                   (SPADCALL
                                    (SPADCALL |ez| |iez| (QREFELT $ 113))
                                    (QREFELT $ 54))
                                   (QREFELT $ 114)))
                        ((SPADCALL |k| '|csch| (QREFELT $ 30))
                         (SPADCALL 2
                                   (SPADCALL
                                    (SPADCALL |ez| |iez| (QREFELT $ 111))
                                    (QREFELT $ 54))
                                   (QREFELT $ 114)))
                        (#8#
                         (SEQ
                          (COND
                           ((SPADCALL |op| (QREFELT $ 9) (QREFELT $ 80))
                            (LETT |tz2|
                                  (SPADCALL
                                   (SPADCALL |z| (SPADCALL 2 (QREFELT $ 13))
                                             (QREFELT $ 15))
                                   (QREFELT $ 55))
                                  . #5#)))
                          (EXIT
                           (COND
                            ((SPADCALL |k| '|sin| (QREFELT $ 30))
                             (SPADCALL (SPADCALL 2 |tz2| (QREFELT $ 114))
                                       (SPADCALL (|spadConstant| $ 61)
                                                 (SPADCALL |tz2| 2
                                                           (QREFELT $ 110))
                                                 (QREFELT $ 113))
                                       (QREFELT $ 15)))
                            ((SPADCALL |k| '|cos| (QREFELT $ 30))
                             (SPADCALL
                              (SPADCALL (|spadConstant| $ 61)
                                        (SPADCALL |tz2| 2 (QREFELT $ 110))
                                        (QREFELT $ 111))
                              (SPADCALL (|spadConstant| $ 61)
                                        (SPADCALL |tz2| 2 (QREFELT $ 110))
                                        (QREFELT $ 113))
                              (QREFELT $ 15)))
                            ((SPADCALL |k| '|sec| (QREFELT $ 30))
                             (SPADCALL
                              (SPADCALL (|spadConstant| $ 61)
                                        (SPADCALL |tz2| 2 (QREFELT $ 110))
                                        (QREFELT $ 113))
                              (SPADCALL (|spadConstant| $ 61)
                                        (SPADCALL |tz2| 2 (QREFELT $ 110))
                                        (QREFELT $ 111))
                              (QREFELT $ 15)))
                            ((SPADCALL |k| '|csc| (QREFELT $ 30))
                             (SPADCALL
                              (SPADCALL (|spadConstant| $ 61)
                                        (SPADCALL |tz2| 2 (QREFELT $ 110))
                                        (QREFELT $ 113))
                              (SPADCALL 2 |tz2| (QREFELT $ 114))
                              (QREFELT $ 15)))
                            (#8#
                             (SPADCALL |op| |args|
                                       (QREFELT $ 116))))))))))))))))))))) 

(DEFUN |EFSTRUC;depeval| (|f| |lk| |k| |v| $)
  (COND
   ((SPADCALL |k| '|log| (QREFELT $ 30))
    (|EFSTRUC;logeval| |f| |lk| |k| |v| $))
   ((SPADCALL |k| '|exp| (QREFELT $ 30))
    (|EFSTRUC;expeval| |f| |lk| |k| |v| $))
   ((SPADCALL |k| '|tan| (QREFELT $ 30))
    (|EFSTRUC;taneval| |f| |lk| |k| |v| $))
   ((SPADCALL |k| '|atan| (QREFELT $ 30))
    (|EFSTRUC;ataneval| |f| |lk| |k| |v| $))
   ((SPADCALL |k| '|nthRoot| (QREFELT $ 30))
    (|EFSTRUC;rooteval| |f| |lk| |k|
     (SPADCALL |v| (SPADCALL |v| (QREFELT $ 118)) (QREFELT $ 119)) $))
   ('T (VECTOR |f| NIL NIL)))) 

(DEFUN |EFSTRUC;rooteval| (|f| |lk| |k| |n| $)
  (PROG (|lv| #1=#:G2161 |r| #2=#:G2160 |l| #3=#:G2159 #4=#:G2158 |nv| |m| |x|)
    (RETURN
     (SEQ
      (LETT |nv|
            (SPADCALL
             (LETT |x| (|SPADfirst| (SPADCALL |k| (QREFELT $ 32)))
                   . #5=(|EFSTRUC;rooteval|))
             (LETT |m| (SPADCALL |n| (QREFELT $ 120)) . #5#) (QREFELT $ 121))
            . #5#)
      (LETT |l|
            (PROGN
             (LETT #4# NIL . #5#)
             (SEQ (LETT |r| NIL . #5#)
                  (LETT #3# (CONS |k| (|EFSTRUC;toR| |lk| |x| $)) . #5#) G190
                  (COND
                   ((OR (ATOM #3#) (PROGN (LETT |r| (CAR #3#) . #5#) NIL))
                    #6=(GO G191)))
                  (SEQ
                   (EXIT
                    (COND
                     ((COND
                       ((EQL
                         (SPADCALL
                          (SPADCALL (SPADCALL |r| (QREFELT $ 32))
                                    (QREFELT $ 122))
                          (QREFELT $ 123))
                         |m|)
                        'NIL)
                       ('T 'T))
                      (LETT #4# (CONS |r| #4#) . #5#)))))
                  (LETT #3# (CDR #3#) . #5#) #7=(GO G190) G191
                  (EXIT (NREVERSE0 #4#))))
            . #5#)
      (LETT |lv|
            (PROGN
             (LETT #2# NIL . #5#)
             (SEQ (LETT |r| NIL . #5#) (LETT #1# |l| . #5#) G190
                  (COND
                   ((OR (ATOM #1#) (PROGN (LETT |r| (CAR #1#) . #5#) NIL))
                    #6#))
                  (SEQ
                   (EXIT
                    (LETT #2#
                          (CONS
                           (SPADCALL |nv|
                                     (SPADCALL |n|
                                               (SPADCALL
                                                (SPADCALL
                                                 (SPADCALL
                                                  (SPADCALL |r| (QREFELT $ 32))
                                                  (QREFELT $ 122))
                                                 (QREFELT $ 123))
                                                (QREFELT $ 124))
                                               (QREFELT $ 125))
                                     (QREFELT $ 126))
                           #2#)
                          . #5#)))
                  (LETT #1# (CDR #1#) . #5#) #7# G191 (EXIT (NREVERSE0 #2#))))
            . #5#)
      (EXIT (VECTOR (SPADCALL |f| |l| |lv| (QREFELT $ 95)) |l| |lv|)))))) 

(DEFUN |EFSTRUC;ataneval| (|f| |lk| |k| |v| $)
  (PROG (|g| |h| |d| #1=#:G2165 #2=#:G2164 #3=#:G2166 #4=#:G2173 |i| #5=#:G2174
         |x| |s| #6=#:G2171 #7=#:G2172 #8=#:G2170 |w|)
    (RETURN
     (SEQ
      (LETT |w| (|SPADfirst| (SPADCALL |k| (QREFELT $ 32)))
            . #9=(|EFSTRUC;ataneval|))
      (LETT |s|
            (SPADCALL
             (PROGN
              (LETT #8# NIL . #9#)
              (SEQ (LETT |x| NIL . #9#) (LETT #7# (|EFSTRUC;toV| |lk| $) . #9#)
                   (LETT |i| (SPADCALL |v| (QREFELT $ 118)) . #9#)
                   (LETT #6# (QVSIZE |v|) . #9#) G190
                   (COND
                    ((OR (> |i| #6#) (ATOM #7#)
                         (PROGN (LETT |x| (CAR #7#) . #9#) NIL))
                     #10=(GO G191)))
                   (SEQ
                    (EXIT
                     (LETT #8#
                           (CONS
                            (SPADCALL (QAREF1O |v| |i| 1) |x| (QREFELT $ 50))
                            #8#)
                           . #9#)))
                   (LETT |i| (PROG1 (+ |i| 1) (LETT #7# (CDR #7#) . #9#))
                         . #9#)
                   #11=(GO G190) G191 (EXIT (NREVERSE0 #8#))))
             (QREFELT $ 53))
            . #9#)
      (LETT |g|
            (PROGN
             (LETT #1# NIL . #9#)
             (SEQ (LETT |x| NIL . #9#) (LETT #5# (|EFSTRUC;toU| |lk| $) . #9#)
                  (LETT |i| (SPADCALL |v| (QREFELT $ 118)) . #9#)
                  (LETT #4# (QVSIZE |v|) . #9#) G190
                  (COND
                   ((OR (> |i| #4#) (ATOM #5#)
                        (PROGN (LETT |x| (CAR #5#) . #9#) NIL))
                    #10#))
                  (SEQ
                   (EXIT
                    (PROGN
                     (LETT #3#
                           (SPADCALL (QAREF1O |v| |i| 1) |x| (QREFELT $ 127))
                           . #9#)
                     (COND
                      (#1# (LETT #2# (SPADCALL #2# #3# (QREFELT $ 113)) . #9#))
                      ('T (PROGN (LETT #2# #3# . #9#) (LETT #1# 'T . #9#)))))))
                  (LETT |i| (PROG1 (+ |i| 1) (LETT #5# (CDR #5#) . #9#)) . #9#)
                  #11# G191 (EXIT NIL))
             (COND (#1# #2#) (#12='T (|spadConstant| $ 26))))
            . #9#)
      (LETT |h|
            (COND
             ((SPADCALL
               (LETT |d|
                     (SPADCALL (|spadConstant| $ 61)
                               (SPADCALL |s| |w| (QREFELT $ 108))
                               (QREFELT $ 113))
                     . #9#)
               (QREFELT $ 106))
              (QREFELT $ 16))
             (#12#
              (SPADCALL
               (SPADCALL (SPADCALL |w| |s| (QREFELT $ 111)) |d| (QREFELT $ 15))
               (QREFELT $ 97))))
            . #9#)
      (LETT |g| (SPADCALL |g| |h| (QREFELT $ 113)) . #9#)
      (EXIT
       (VECTOR (SPADCALL |f| (LIST |k|) (LIST |g|) (QREFELT $ 95)) (LIST |k|)
               (LIST |g|))))))) 

(DEFUN |EFSTRUC;gdCoef?| (|c| |v| $)
  (PROG (#1=#:G2179 #2=#:G2181 #3=#:G2182 |i|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (SEQ
         (EXIT
          (SEQ
           (LETT |i| (SPADCALL |v| (QREFELT $ 118)) . #4=(|EFSTRUC;gdCoef?|))
           (LETT #3# (QVSIZE |v|) . #4#) G190 (COND ((> |i| #3#) (GO G191)))
           (SEQ
            (EXIT
             (COND
              ((QEQCAR
                (SPADCALL (SPADCALL (QAREF1O |v| |i| 1) |c| (QREFELT $ 125))
                          (QREFELT $ 128))
                1)
               (PROGN
                (LETT #1# (PROGN (LETT #2# 'NIL . #4#) (GO #2#)) . #4#)
                (GO #1#))))))
           (LETT |i| (+ |i| 1) . #4#) (GO G190) G191 (EXIT NIL)))
         #1# (EXIT #1#))
        (EXIT 'T)))
      #2# (EXIT #2#))))) 

(DEFUN |EFSTRUC;goodCoef| (|v| |l| |s| $)
  (PROG (#1=#:G2213 #2=#:G2215 |r| #3=#:G2219 |i| #4=#:G2220 |k| |h| |j| |h1|
         #5=#:G2217 #6=#:G2218 |ll| #7=#:G2216)
    (RETURN
     (SEQ
      (EXIT
       (SEQ (LETT |h| 0 . #8=(|EFSTRUC;goodCoef|)) (LETT |j| 0 . #8#)
            (LETT |ll| NIL . #8#)
            (SEQ (LETT |k| NIL . #8#) (LETT #7# |l| . #8#) G190
                 (COND
                  ((OR (ATOM #7#) (PROGN (LETT |k| (CAR #7#) . #8#) NIL))
                   #9=(GO G191)))
                 (SEQ
                  (EXIT
                   (COND
                    ((OR (SPADCALL |k| '|log| (QREFELT $ 30))
                         (OR (SPADCALL |k| '|exp| (QREFELT $ 30))
                             (OR (SPADCALL |k| '|tan| (QREFELT $ 30))
                                 (SPADCALL |k| '|atan| (QREFELT $ 30)))))
                     (SEQ (LETT |ll| (CONS |k| |ll|) . #8#)
                          (EXIT (LETT |h| (+ |h| 1) . #8#)))))))
                 (LETT #7# (CDR #7#) . #8#) #10=(GO G190) G191 (EXIT NIL))
            (COND
             ((NULL
               (EQL |h| (+ (- (QVSIZE |v|) (SPADCALL |v| (QREFELT $ 118))) 1)))
              (EXIT (CONS 1 "failed"))))
            (LETT |h| 0 . #8#) (LETT |ll| (REVERSE |ll|) . #8#)
            (SEQ (LETT |k| NIL . #8#) (LETT #6# |ll| . #8#)
                 (LETT |i| (SPADCALL |v| (QREFELT $ 118)) . #8#)
                 (LETT #5# (QVSIZE |v|) . #8#) G190
                 (COND
                  ((OR (> |i| #5#) (ATOM #6#)
                       (PROGN (LETT |k| (CAR #6#) . #8#) NIL))
                   #9#))
                 (SEQ (LETT |h1| (SPADCALL |k| (QREFELT $ 129)) . #8#)
                      (EXIT
                       (COND
                        ((< |h| |h1|)
                         (SEQ (LETT |j| |i| . #8#)
                              (EXIT (LETT |h| |h1| . #8#)))))))
                 (LETT |i| (PROG1 (+ |i| 1) (LETT #6# (CDR #6#) . #8#)) . #8#)
                 #10# G191 (EXIT NIL))
            (SEQ
             (EXIT
              (SEQ (LETT |k| NIL . #8#) (LETT #4# |ll| . #8#)
                   (LETT |i| (SPADCALL |v| (QREFELT $ 118)) . #8#)
                   (LETT #3# (QVSIZE |v|) . #8#) G190
                   (COND
                    ((OR (> |i| #3#) (ATOM #4#)
                         (PROGN (LETT |k| (CAR #4#) . #8#) NIL))
                     #9#))
                   (SEQ
                    (EXIT
                     (COND
                      ((SPADCALL |k| |s| (QREFELT $ 30))
                       (COND
                        ((NULL (< |i| |j|))
                         (SEQ
                          (LETT |r|
                                (SPADCALL (QAREF1O |v| |i| 1) (QREFELT $ 131))
                                . #8#)
                          (EXIT
                           (COND
                            ((QEQCAR |r| 0)
                             (COND
                              ((QEQCAR (SPADCALL (QCDR |r|) (QREFELT $ 128)) 0)
                               (COND
                                ((|EFSTRUC;gdCoef?| (QAREF1O |v| |i| 1) |v| $)
                                 (PROGN
                                  (LETT #1#
                                        (PROGN
                                         (LETT #2# (CONS 0 (CONS |i| |k|))
                                               . #8#)
                                         (GO #2#))
                                        . #8#)
                                  (GO #1#))))))))))))))))
                   (LETT |i| (PROG1 (+ |i| 1) (LETT #4# (CDR #4#) . #8#))
                         . #8#)
                   #10# G191 (EXIT NIL)))
             #1# (EXIT #1#))
            (EXIT (CONS 1 "failed"))))
      #2# (EXIT #2#))))) 

(DEFUN |EFSTRUC;taneval| (|f| |lk| |k| |v| $)
  (PROG (|g| #1=#:G2244 |a| #2=#:G2245 |x| #3=#:G2243 |l| #4=#:G2242 |kk|
         #5=#:G2241 |lv| #6=#:G2240 |i| #7=#:G2239 |v0| |rec| |c| #8=#:G2223
         #9=#:G2222 #10=#:G2224 #11=#:G2237 #12=#:G2238 |fns| |u|)
    (RETURN
     (SEQ
      (LETT |u| (|SPADfirst| (SPADCALL |k| (QREFELT $ 32)))
            . #13=(|EFSTRUC;taneval|))
      (LETT |fns| (|EFSTRUC;toU| |lk| $) . #13#)
      (LETT |c|
            (SPADCALL |u|
                      (PROGN
                       (LETT #8# NIL . #13#)
                       (SEQ (LETT |x| NIL . #13#) (LETT #12# |fns| . #13#)
                            (LETT |i| (SPADCALL |v| (QREFELT $ 118)) . #13#)
                            (LETT #11# (QVSIZE |v|) . #13#) G190
                            (COND
                             ((OR (> |i| #11#) (ATOM #12#)
                                  (PROGN (LETT |x| (CAR #12#) . #13#) NIL))
                              #14=(GO G191)))
                            (SEQ
                             (EXIT
                              (PROGN
                               (LETT #10#
                                     (SPADCALL (QAREF1O |v| |i| 1) |x|
                                               (QREFELT $ 127))
                                     . #13#)
                               (COND
                                (#8#
                                 (LETT #9# (SPADCALL #9# #10# (QREFELT $ 113))
                                       . #13#))
                                ('T
                                 (PROGN
                                  (LETT #9# #10# . #13#)
                                  (LETT #8# 'T . #13#)))))))
                            (LETT |i|
                                  (PROG1 (+ |i| 1)
                                    (LETT #12# (CDR #12#) . #13#))
                                  . #13#)
                            #15=(GO G190) G191 (EXIT NIL))
                       (COND (#8# #9#) (#16='T (|spadConstant| $ 26))))
                      (QREFELT $ 111))
            . #13#)
      (LETT |rec| (|EFSTRUC;goodCoef| |v| |lk| '|tan| $) . #13#)
      (EXIT
       (COND
        ((QEQCAR |rec| 1) (|EFSTRUC;tannosimp| |f| |lk| |k| |v| |fns| |c| $))
        (#16#
         (SEQ
          (LETT |v0|
                (SPADCALL
                 (SPADCALL (QAREF1O |v| (QCAR (QCDR |rec|)) 1) (QREFELT $ 132))
                 (QREFELT $ 120))
                . #13#)
          (LETT |lv|
                (PROGN
                 (LETT #7# NIL . #13#)
                 (SEQ (LETT |i| (SPADCALL |v| (QREFELT $ 118)) . #13#)
                      (LETT #6# (QVSIZE |v|) . #13#) G190
                      (COND ((> |i| #6#) #14#))
                      (SEQ
                       (EXIT
                        (COND
                         ((COND ((EQL |i| (QCAR (QCDR |rec|))) 'NIL) (#16# 'T))
                          (LETT #7# (CONS (QAREF1O |v| |i| 1) #7#) . #13#)))))
                      (LETT |i| (+ |i| 1) . #13#) #15# G191
                      (EXIT (NREVERSE0 #7#))))
                . #13#)
          (LETT |l|
                (PROGN
                 (LETT #5# NIL . #13#)
                 (SEQ (LETT |kk| NIL . #13#) (LETT #4# |lk| . #13#) G190
                      (COND
                       ((OR (ATOM #4#)
                            (PROGN (LETT |kk| (CAR #4#) . #13#) NIL))
                        #14#))
                      (SEQ
                       (EXIT
                        (COND
                         ((COND
                           ((SPADCALL |kk| (QCDR (QCDR |rec|)) (QREFELT $ 98))
                            'NIL)
                           (#16# 'T))
                          (LETT #5# (CONS |kk| #5#) . #13#)))))
                      (LETT #4# (CDR #4#) . #13#) #15# G191
                      (EXIT (NREVERSE0 #5#))))
                . #13#)
          (LETT |g|
                (|EFSTRUC;tanSum|
                 (SPADCALL (SPADCALL |v0| |c| (QREFELT $ 133)) (QREFELT $ 14))
                 (CONS
                  (SPADCALL (SPADCALL |k| (QREFELT $ 93)) |v0| (QREFELT $ 49))
                  (PROGN
                   (LETT #3# NIL . #13#)
                   (SEQ (LETT |x| NIL . #13#)
                        (LETT #2# (|EFSTRUC;toV| |l| $) . #13#)
                        (LETT |a| NIL . #13#) (LETT #1# |lv| . #13#) G190
                        (COND
                         ((OR (ATOM #1#)
                              (PROGN (LETT |a| (CAR #1#) . #13#) NIL)
                              (ATOM #2#)
                              (PROGN (LETT |x| (CAR #2#) . #13#) NIL))
                          #14#))
                        (SEQ
                         (EXIT
                          (LETT #3#
                                (CONS
                                 (SPADCALL |x|
                                           (-
                                            (SPADCALL
                                             (SPADCALL |a| |v0|
                                                       (QREFELT $ 134))
                                             (QREFELT $ 120)))
                                           (QREFELT $ 49))
                                 #3#)
                                . #13#)))
                        (LETT #1# (PROG1 (CDR #1#) (LETT #2# (CDR #2#) . #13#))
                              . #13#)
                        #15# G191 (EXIT (NREVERSE0 #3#)))))
                 $)
                . #13#)
          (EXIT
           (VECTOR
            (SPADCALL |f| (LIST (QCDR (QCDR |rec|))) (LIST |g|) (QREFELT $ 95))
            (LIST (QCDR (QCDR |rec|))) (LIST |g|))))))))))) 

(DEFUN |EFSTRUC;tannosimp| (|f| |lk| |k| |v| |fns| |c| $)
  (PROG (|h| |i| #1=#:G2277 |x| #2=#:G2276 |lk1| |newtan| #3=#:G2274 #4=#:G2275
         |t| #5=#:G2273 |li| #6=#:G2272 #7=#:G2271 #8=#:G2270 |newt| #9=#:G2269
         |u| #10=#:G2268 |dd| |d| |cd| #11=#:G2267 #12=#:G2266 #13=#:G2265
         #14=#:G2264 |n|)
    (RETURN
     (SEQ (LETT |n| (QVSIZE |v|) . #15=(|EFSTRUC;tannosimp|))
          (LETT |lk|
                (PROGN
                 (LETT #14# NIL . #15#)
                 (SEQ (LETT |x| NIL . #15#) (LETT #13# |lk| . #15#) G190
                      (COND
                       ((OR (ATOM #13#)
                            (PROGN (LETT |x| (CAR #13#) . #15#) NIL))
                        #16=(GO G191)))
                      (SEQ
                       (EXIT
                        (COND
                         ((COND ((SPADCALL |x| '|tan| (QREFELT $ 30)) 'T)
                                (#17='T (SPADCALL |x| '|atan| (QREFELT $ 30))))
                          (LETT #14# (CONS |x| #14#) . #15#)))))
                      (LETT #13# (CDR #13#) . #15#) #18=(GO G190) G191
                      (EXIT (NREVERSE0 #14#))))
                . #15#)
          (LETT |lk1|
                (PROGN
                 (LETT #12# NIL . #15#)
                 (SEQ (LETT |i| 1 . #15#) (LETT |x| NIL . #15#)
                      (LETT #11# |lk| . #15#) G190
                      (COND
                       ((OR (ATOM #11#)
                            (PROGN (LETT |x| (CAR #11#) . #15#) NIL)
                            (QSGREATERP |i| |n|))
                        #16#))
                      (SEQ
                       (EXIT
                        (COND
                         ((COND
                           ((SPADCALL (QAREF1O |v| |i| 1)
                                      (|spadConstant| $ 135) (QREFELT $ 85))
                            'NIL)
                           (#17# 'T))
                          (LETT #12# (CONS |x| #12#) . #15#)))))
                      (LETT #11#
                            (PROG1 (CDR #11#) (LETT |i| (QSADD1 |i|) . #15#))
                            . #15#)
                      #18# G191 (EXIT (NREVERSE0 #12#))))
                . #15#)
          (EXIT
           (COND
            ((SPADCALL (CONS #'|EFSTRUC;tannosimp!0| $) |lk1| (QREFELT $ 136))
             (SEQ
              (LETT |dd|
                    (SPADCALL
                     (LETT |d|
                           (QCDR
                            (LETT |cd| (SPADCALL |v| (QREFELT $ 139)) . #15#))
                           . #15#)
                     (QREFELT $ 13))
                    . #15#)
              (LETT |newt|
                    (PROGN
                     (LETT #10# NIL . #15#)
                     (SEQ (LETT |i| 1 . #15#) (LETT |u| NIL . #15#)
                          (LETT #9# |fns| . #15#) G190
                          (COND
                           ((OR (ATOM #9#)
                                (PROGN (LETT |u| (CAR #9#) . #15#) NIL)
                                (QSGREATERP |i| |n|))
                            #16#))
                          (SEQ
                           (EXIT
                            (COND
                             ((COND
                               ((SPADCALL (QAREF1O |v| |i| 1)
                                          (|spadConstant| $ 135)
                                          (QREFELT $ 85))
                                'NIL)
                               (#17# 'T))
                              (LETT #10#
                                    (CONS
                                     (SPADCALL
                                      (SPADCALL |u| |dd| (QREFELT $ 15))
                                      (QREFELT $ 55))
                                     #10#)
                                    . #15#)))))
                          (LETT #9#
                                (PROG1 (CDR #9#)
                                  (LETT |i| (QSADD1 |i|) . #15#))
                                . #15#)
                          #18# G191 (EXIT (NREVERSE0 #10#))))
                    . #15#)
              (LETT |newtan|
                    (PROGN
                     (LETT #8# NIL . #15#)
                     (SEQ (LETT |t| NIL . #15#) (LETT #7# |newt| . #15#) G190
                          (COND
                           ((OR (ATOM #7#)
                                (PROGN (LETT |t| (CAR #7#) . #15#) NIL))
                            #16#))
                          (SEQ
                           (EXIT
                            (LETT #8#
                                  (CONS (SPADCALL |t| |d| (QREFELT $ 49)) #8#)
                                  . #15#)))
                          (LETT #7# (CDR #7#) . #15#) #18# G191
                          (EXIT (NREVERSE0 #8#))))
                    . #15#)
              (LETT |li|
                    (PROGN
                     (LETT #6# NIL . #15#)
                     (SEQ (LETT |i| 1 . #15#) G190
                          (COND ((QSGREATERP |i| |n|) #16#))
                          (SEQ
                           (EXIT
                            (COND
                             ((COND
                               ((SPADCALL (QAREF1O |v| |i| 1)
                                          (|spadConstant| $ 135)
                                          (QREFELT $ 85))
                                'NIL)
                               (#17# 'T))
                              (LETT #6# (CONS |i| #6#) . #15#)))))
                          (LETT |i| (QSADD1 |i|) . #15#) #18# G191
                          (EXIT (NREVERSE0 #6#))))
                    . #15#)
              (LETT |h|
                    (|EFSTRUC;tanSum| |c|
                     (PROGN
                      (LETT #5# NIL . #15#)
                      (SEQ (LETT |t| NIL . #15#) (LETT #4# |newt| . #15#)
                           (LETT |i| NIL . #15#) (LETT #3# |li| . #15#) G190
                           (COND
                            ((OR (ATOM #3#)
                                 (PROGN (LETT |i| (CAR #3#) . #15#) NIL)
                                 (ATOM #4#)
                                 (PROGN (LETT |t| (CAR #4#) . #15#) NIL))
                             #16#))
                           (SEQ
                            (EXIT
                             (LETT #5#
                                   (CONS
                                    (SPADCALL |t| (QAREF1O (QCAR |cd|) |i| 1)
                                              (QREFELT $ 49))
                                    #5#)
                                   . #15#)))
                           (LETT #3#
                                 (PROG1 (CDR #3#) (LETT #4# (CDR #4#) . #15#))
                                 . #15#)
                           #18# G191 (EXIT (NREVERSE0 #5#))))
                     $)
                    . #15#)
              (LETT |newtan| (CONS |h| |newtan|) . #15#)
              (LETT |lk1| (CONS |k| |lk1|) . #15#)
              (EXIT
               (VECTOR (SPADCALL |f| |lk1| |newtan| (QREFELT $ 95)) |lk1|
                       |newtan|))))
            (#17#
             (SEQ
              (LETT |h|
                    (|EFSTRUC;tanSum| |c|
                     (PROGN
                      (LETT #2# NIL . #15#)
                      (SEQ (LETT |x| NIL . #15#)
                           (LETT #1# (|EFSTRUC;toV| |lk| $) . #15#)
                           (LETT |i| 1 . #15#) G190
                           (COND
                            ((OR (QSGREATERP |i| |n|) (ATOM #1#)
                                 (PROGN (LETT |x| (CAR #1#) . #15#) NIL))
                             #16#))
                           (SEQ
                            (EXIT
                             (LETT #2#
                                   (CONS
                                    (SPADCALL (QAREF1O |v| |i| 1) |x|
                                              (QREFELT $ 50))
                                    #2#)
                                   . #15#)))
                           (LETT |i|
                                 (PROG1 (QSADD1 |i|)
                                   (LETT #1# (CDR #1#) . #15#))
                                 . #15#)
                           #18# G191 (EXIT (NREVERSE0 #2#))))
                     $)
                    . #15#)
              (EXIT
               (VECTOR (SPADCALL |f| (LIST |k|) (LIST |h|) (QREFELT $ 95))
                       (LIST |k|) (LIST |h|))))))))))) 

(DEFUN |EFSTRUC;tannosimp!0| (|x| $) (SPADCALL |x| '|tan| (QREFELT $ 30))) 

(DEFUN |EFSTRUC;expnosimp| (|f| |lk| |k| |v| |fns| |g| $)
  (PROG (|h| #1=#:G2372 #2=#:G2371 #3=#:G2373 #4=#:G2388 |i| #5=#:G2389 |y|
         |newexp| |lk1| #6=#:G2329 #7=#:G2328 #8=#:G2330 #9=#:G2386 #10=#:G2387
         |e| |li| #11=#:G2385 #12=#:G2384 #13=#:G2383 |newe| #14=#:G2382
         #15=#:G2381 |dd| |d| |cd| #16=#:G2380 |x| #17=#:G2379 #18=#:G2378
         #19=#:G2377 |n|)
    (RETURN
     (SEQ (LETT |n| (QVSIZE |v|) . #20=(|EFSTRUC;expnosimp|))
          (LETT |lk|
                (PROGN
                 (LETT #19# NIL . #20#)
                 (SEQ (LETT |x| NIL . #20#) (LETT #18# |lk| . #20#) G190
                      (COND
                       ((OR (ATOM #18#)
                            (PROGN (LETT |x| (CAR #18#) . #20#) NIL))
                        #21=(GO G191)))
                      (SEQ
                       (EXIT
                        (COND
                         ((COND ((SPADCALL |x| '|exp| (QREFELT $ 30)) 'T)
                                (#22='T (SPADCALL |x| '|log| (QREFELT $ 30))))
                          (LETT #19# (CONS |x| #19#) . #20#)))))
                      (LETT #18# (CDR #18#) . #20#) #23=(GO G190) G191
                      (EXIT (NREVERSE0 #19#))))
                . #20#)
          (LETT |lk1|
                (PROGN
                 (LETT #17# NIL . #20#)
                 (SEQ (LETT |i| 1 . #20#) (LETT |x| NIL . #20#)
                      (LETT #16# |lk| . #20#) G190
                      (COND
                       ((OR (ATOM #16#)
                            (PROGN (LETT |x| (CAR #16#) . #20#) NIL)
                            (QSGREATERP |i| |n|))
                        #21#))
                      (SEQ
                       (EXIT
                        (COND
                         ((COND
                           ((SPADCALL (QAREF1O |v| |i| 1)
                                      (|spadConstant| $ 135) (QREFELT $ 85))
                            'NIL)
                           (#22# 'T))
                          (LETT #17# (CONS |x| #17#) . #20#)))))
                      (LETT #16#
                            (PROG1 (CDR #16#) (LETT |i| (QSADD1 |i|) . #20#))
                            . #20#)
                      #23# G191 (EXIT (NREVERSE0 #17#))))
                . #20#)
          (EXIT
           (COND
            ((SPADCALL (CONS #'|EFSTRUC;expnosimp!0| $) |lk1| (QREFELT $ 136))
             (SEQ
              (LETT |dd|
                    (SPADCALL
                     (LETT |d|
                           (QCDR
                            (LETT |cd| (SPADCALL |v| (QREFELT $ 139)) . #20#))
                           . #20#)
                     (QREFELT $ 13))
                    . #20#)
              (LETT |newe|
                    (PROGN
                     (LETT #15# NIL . #20#)
                     (SEQ (LETT |i| 1 . #20#) (LETT |y| NIL . #20#)
                          (LETT #14# |fns| . #20#) G190
                          (COND
                           ((OR (ATOM #14#)
                                (PROGN (LETT |y| (CAR #14#) . #20#) NIL)
                                (QSGREATERP |i| |n|))
                            #21#))
                          (SEQ
                           (EXIT
                            (COND
                             ((COND
                               ((SPADCALL (QAREF1O |v| |i| 1)
                                          (|spadConstant| $ 135)
                                          (QREFELT $ 85))
                                'NIL)
                               (#22# 'T))
                              (LETT #15#
                                    (CONS
                                     (SPADCALL
                                      (SPADCALL |y| |dd| (QREFELT $ 15))
                                      (QREFELT $ 109))
                                     #15#)
                                    . #20#)))))
                          (LETT #14#
                                (PROG1 (CDR #14#)
                                  (LETT |i| (QSADD1 |i|) . #20#))
                                . #20#)
                          #23# G191 (EXIT (NREVERSE0 #15#))))
                    . #20#)
              (LETT |newexp|
                    (PROGN
                     (LETT #13# NIL . #20#)
                     (SEQ (LETT |e| NIL . #20#) (LETT #12# |newe| . #20#) G190
                          (COND
                           ((OR (ATOM #12#)
                                (PROGN (LETT |e| (CAR #12#) . #20#) NIL))
                            #21#))
                          (SEQ
                           (EXIT
                            (LETT #13#
                                  (CONS (SPADCALL |e| |d| (QREFELT $ 140))
                                        #13#)
                                  . #20#)))
                          (LETT #12# (CDR #12#) . #20#) #23# G191
                          (EXIT (NREVERSE0 #13#))))
                    . #20#)
              (LETT |li|
                    (PROGN
                     (LETT #11# NIL . #20#)
                     (SEQ (LETT |i| 1 . #20#) G190
                          (COND ((QSGREATERP |i| |n|) #21#))
                          (SEQ
                           (EXIT
                            (COND
                             ((COND
                               ((SPADCALL (QAREF1O |v| |i| 1)
                                          (|spadConstant| $ 135)
                                          (QREFELT $ 85))
                                'NIL)
                               (#22# 'T))
                              (LETT #11# (CONS |i| #11#) . #20#)))))
                          (LETT |i| (QSADD1 |i|) . #20#) #23# G191
                          (EXIT (NREVERSE0 #11#))))
                    . #20#)
              (LETT |h|
                    (SPADCALL
                     (PROGN
                      (LETT #6# NIL . #20#)
                      (SEQ (LETT |e| NIL . #20#) (LETT #10# |newe| . #20#)
                           (LETT |i| NIL . #20#) (LETT #9# |li| . #20#) G190
                           (COND
                            ((OR (ATOM #9#)
                                 (PROGN (LETT |i| (CAR #9#) . #20#) NIL)
                                 (ATOM #10#)
                                 (PROGN (LETT |e| (CAR #10#) . #20#) NIL))
                             #21#))
                           (SEQ
                            (EXIT
                             (PROGN
                              (LETT #8#
                                    (SPADCALL |e| (QAREF1O (QCAR |cd|) |i| 1)
                                              (QREFELT $ 140))
                                    . #20#)
                              (COND
                               (#6#
                                (LETT #7# (SPADCALL #7# #8# (QREFELT $ 108))
                                      . #20#))
                               ('T
                                (PROGN
                                 (LETT #7# #8# . #20#)
                                 (LETT #6# 'T . #20#)))))))
                           (LETT #9#
                                 (PROG1 (CDR #9#)
                                   (LETT #10# (CDR #10#) . #20#))
                                 . #20#)
                           #23# G191 (EXIT NIL))
                      (COND (#6# #7#) (#22# (|spadConstant| $ 61))))
                     |g| (QREFELT $ 108))
                    . #20#)
              (LETT |lk1| (CONS |k| |lk1|) . #20#)
              (LETT |newexp| (CONS |h| |newexp|) . #20#)
              (EXIT
               (VECTOR (SPADCALL |f| |lk1| |newexp| (QREFELT $ 95)) |lk1|
                       |newexp|))))
            (#22#
             (SEQ
              (LETT |h|
                    (SPADCALL
                     (PROGN
                      (LETT #1# NIL . #20#)
                      (SEQ (LETT |y| NIL . #20#) (LETT #5# |fns| . #20#)
                           (LETT |i| (SPADCALL |v| (QREFELT $ 118)) . #20#)
                           (LETT #4# (QVSIZE |v|) . #20#) G190
                           (COND
                            ((OR (> |i| #4#) (ATOM #5#)
                                 (PROGN (LETT |y| (CAR #5#) . #20#) NIL))
                             #21#))
                           (SEQ
                            (EXIT
                             (PROGN
                              (LETT #3#
                                    (SPADCALL (SPADCALL |y| (QREFELT $ 109))
                                              (QAREF1O |v| |i| 1)
                                              (QREFELT $ 126))
                                    . #20#)
                              (COND
                               (#1#
                                (LETT #2# (SPADCALL #2# #3# (QREFELT $ 108))
                                      . #20#))
                               ('T
                                (PROGN
                                 (LETT #2# #3# . #20#)
                                 (LETT #1# 'T . #20#)))))))
                           (LETT |i|
                                 (PROG1 (+ |i| 1) (LETT #5# (CDR #5#) . #20#))
                                 . #20#)
                           #23# G191 (EXIT NIL))
                      (COND (#1# #2#) (#22# (|spadConstant| $ 61))))
                     |g| (QREFELT $ 108))
                    . #20#)
              (EXIT
               (VECTOR (SPADCALL |f| (LIST |k|) (LIST |h|) (QREFELT $ 95))
                       (LIST |k|) (LIST |h|))))))))))) 

(DEFUN |EFSTRUC;expnosimp!0| (|x| $) (SPADCALL |x| '|exp| (QREFELT $ 30))) 

(DEFUN |EFSTRUC;logeval| (|f| |lk| |k| |v| $)
  (PROG (|g| #1=#:G2401 #2=#:G2400 #3=#:G2402 #4=#:G2407 |i| #5=#:G2408 |x| |c|
         #6=#:G2392 #7=#:G2391 #8=#:G2393 #9=#:G2405 #10=#:G2406 |z|)
    (RETURN
     (SEQ
      (LETT |z| (|SPADfirst| (SPADCALL |k| (QREFELT $ 32)))
            . #11=(|EFSTRUC;logeval|))
      (LETT |c|
            (SPADCALL |z|
                      (PROGN
                       (LETT #6# NIL . #11#)
                       (SEQ (LETT |i| (SPADCALL |v| (QREFELT $ 118)) . #11#)
                            (LETT #10# (QVSIZE |v|) . #11#)
                            (LETT |x| NIL . #11#)
                            (LETT #9# (|EFSTRUC;toZ| |lk| $) . #11#) G190
                            (COND
                             ((OR (ATOM #9#)
                                  (PROGN (LETT |x| (CAR #9#) . #11#) NIL)
                                  (> |i| #10#))
                              #12=(GO G191)))
                            (SEQ
                             (EXIT
                              (PROGN
                               (LETT #8#
                                     (SPADCALL |x| (QAREF1O |v| |i| 1)
                                               (QREFELT $ 126))
                                     . #11#)
                               (COND
                                (#6#
                                 (LETT #7# (SPADCALL #7# #8# (QREFELT $ 108))
                                       . #11#))
                                ('T
                                 (PROGN
                                  (LETT #7# #8# . #11#)
                                  (LETT #6# 'T . #11#)))))))
                            (LETT #9#
                                  (PROG1 (CDR #9#) (LETT |i| (+ |i| 1) . #11#))
                                  . #11#)
                            #13=(GO G190) G191 (EXIT NIL))
                       (COND (#6# #7#) (#14='T (|spadConstant| $ 61))))
                      (QREFELT $ 15))
            . #11#)
      (LETT |g|
            (SPADCALL
             (PROGN
              (LETT #1# NIL . #11#)
              (SEQ (LETT |x| NIL . #11#)
                   (LETT #5# (|EFSTRUC;toY| |lk| $) . #11#)
                   (LETT |i| (SPADCALL |v| (QREFELT $ 118)) . #11#)
                   (LETT #4# (QVSIZE |v|) . #11#) G190
                   (COND
                    ((OR (> |i| #4#) (ATOM #5#)
                         (PROGN (LETT |x| (CAR #5#) . #11#) NIL))
                     #12#))
                   (SEQ
                    (EXIT
                     (PROGN
                      (LETT #3#
                            (SPADCALL (QAREF1O |v| |i| 1) |x| (QREFELT $ 127))
                            . #11#)
                      (COND
                       (#1#
                        (LETT #2# (SPADCALL #2# #3# (QREFELT $ 113)) . #11#))
                       ('T
                        (PROGN (LETT #2# #3# . #11#) (LETT #1# 'T . #11#)))))))
                   (LETT |i| (PROG1 (+ |i| 1) (LETT #5# (CDR #5#) . #11#))
                         . #11#)
                   #13# G191 (EXIT NIL))
              (COND (#1# #2#) (#14# (|spadConstant| $ 26))))
             (SPADCALL |c| (QREFELT $ 96)) (QREFELT $ 113))
            . #11#)
      (EXIT
       (VECTOR (SPADCALL |f| (LIST |k|) (LIST |g|) (QREFELT $ 95)) (LIST |k|)
               (LIST |g|))))))) 

(DEFUN |EFSTRUC;rischNormalize0| (|f| |vars| $)
  (PROG (#1=#:G2418 |rn| #2=#:G2414 |rec| |c| |klist| |i| #3=#:G2419 |kk| |n|
         |pars| |funs| |lk|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |lk| (SPADCALL |f| (QREFELT $ 58))
              . #4=(|EFSTRUC;rischNormalize0|))
        (LETT |funs| |lk| . #4#)
        (LETT |pars| (SPADCALL |f| (QREFELT $ 23)) . #4#)
        (LETT |pars| (SPADCALL |pars| |vars| (QREFELT $ 141)) . #4#)
        (EXIT
         (COND ((NULL |funs|) (VECTOR |f| NIL NIL))
               ('T
                (SEQ (LETT |n| (LENGTH |funs|) . #4#)
                     (SEQ (LETT |kk| NIL . #4#) (LETT #3# (CDR |funs|) . #4#)
                          (LETT |i| 1 . #4#) G190
                          (COND
                           ((OR (QSGREATERP |i| |n|) (ATOM #3#)
                                (PROGN (LETT |kk| (CAR #3#) . #4#) NIL))
                            (GO G191)))
                          (SEQ
                           (EXIT
                            (SEQ
                             (LETT |klist| (SPADCALL |funs| |i| (QREFELT $ 63))
                                   . #4#)
                             (SEQ
                              (LETT |c|
                                    (|EFSTRUC;findRelation| |vars| |pars|
                                     |klist| |kk| $)
                                    . #4#)
                              (EXIT
                               (COND
                                ((QEQCAR |c| 0)
                                 (COND
                                  ((NULL (SPADCALL (CDR |c|) (QREFELT $ 142)))
                                   (PROGN
                                    (LETT #2#
                                          (SEQ
                                           (LETT |rec|
                                                 (|EFSTRUC;depeval| |f| |klist|
                                                  |kk| (CDR |c|) $)
                                                 . #4#)
                                           (LETT |rn|
                                                 (|EFSTRUC;rischNormalize0|
                                                  (QVELT |rec| 0) |vars| $)
                                                 . #4#)
                                           (EXIT
                                            (PROGN
                                             (LETT #1#
                                                   (VECTOR (QVELT |rn| 0)
                                                           (SPADCALL
                                                            (QVELT |rec| 1)
                                                            (QVELT |rn| 1)
                                                            (QREFELT $ 64))
                                                           (SPADCALL
                                                            (QVELT |rec| 2)
                                                            (QVELT |rn| 2)
                                                            (QREFELT $ 65)))
                                                   . #4#)
                                             (GO #1#))))
                                          . #4#)
                                    (GO #2#))))))))
                             (EXIT
                              (COND
                               ((QEQCAR |c| 1)
                                (SEQ
                                 (LETT |rn|
                                       (|EFSTRUC;rischNormalize0|
                                        (SPADCALL |f| (LIST |kk|)
                                                  (LIST (CDR |c|))
                                                  (QREFELT $ 95))
                                        |vars| $)
                                       . #4#)
                                 (EXIT
                                  (PROGN
                                   (LETT #1#
                                         (VECTOR (QVELT |rn| 0)
                                                 (CONS |kk| (QVELT |rn| 1))
                                                 (CONS (CDR |c|)
                                                       (QVELT |rn| 2)))
                                         . #4#)
                                   (GO #1#)))))))))
                           #2# (EXIT #2#))
                          (LETT |i|
                                (PROG1 (QSADD1 |i|) (LETT #3# (CDR #3#) . #4#))
                                . #4#)
                          (GO G190) G191 (EXIT NIL))
                     (EXIT (VECTOR |f| NIL NIL))))))))
      #1# (EXIT #1#))))) 

(DEFUN |EFSTRUC;rischNormalize;FSR;37| (|f| |v| $)
  (|EFSTRUC;rischNormalize0| |f| (LIST |v|) $)) 

(DEFUN |EFSTRUC;rootNormalize;FKF;38| (|f| |k| $)
  (PROG (|u|)
    (RETURN
     (SEQ
      (LETT |u|
            (|EFSTRUC;rootKernelNormalize| |f|
             (|EFSTRUC;toR| (SPADCALL |f| (QREFELT $ 58))
              (|SPADfirst| (SPADCALL |k| (QREFELT $ 32))) $)
             |k| $)
            |EFSTRUC;rootNormalize;FKF;38|)
      (EXIT (COND ((QEQCAR |u| 1) |f|) ('T (QVELT (QCDR |u|) 0)))))))) 

(DEFUN |EFSTRUC;rootKernelNormalize| (|f| |l| |k| $)
  (PROG (|c|)
    (RETURN
     (SEQ
      (LETT |c| (|EFSTRUC;rootDep| |l| |k| $) |EFSTRUC;rootKernelNormalize|)
      (EXIT
       (COND
        ((QEQCAR |c| 0)
         (CONS 0
               (|EFSTRUC;rooteval| |f| |l| |k|
                (SPADCALL (CDR |c|) (SPADCALL (CDR |c|) (QREFELT $ 118))
                          (QREFELT $ 119))
                $)))
        ('T (CONS 1 "failed")))))))) 

(DEFUN |EFSTRUC;localnorm| (|f| $)
  (QVELT (|EFSTRUC;rischNormalize0| |f| NIL $) 0)) 

(DEFUN |EFSTRUC;validExponential;LFSU;41| (|twr| |eta| |x| $)
  (PROG (#1=#:G2473 #2=#:G2472 #3=#:G2474 #4=#:G2485 |i| #5=#:G2486 |yy| |g|
         #6=#:G2446 #7=#:G2445 #8=#:G2447 #9=#:G2483 #10=#:G2484 |v| |c|
         #11=#:G2482 |fns| #12=#:G2481)
    (RETURN
     (SEQ
      (LETT |c|
            (SPADCALL
             (SPADCALL
              (PROGN
               (LETT #12# NIL . #13=(|EFSTRUC;validExponential;LFSU;41|))
               (SEQ (LETT |g| NIL . #13#)
                    (LETT #11# (LETT |fns| (|EFSTRUC;toY| |twr| $) . #13#)
                          . #13#)
                    G190
                    (COND
                     ((OR (ATOM #11#) (PROGN (LETT |g| (CAR #11#) . #13#) NIL))
                      #14=(GO G191)))
                    (SEQ
                     (EXIT
                      (LETT #12# (CONS (SPADCALL |g| |x| (QREFELT $ 66)) #12#)
                            . #13#)))
                    (LETT #11# (CDR #11#) . #13#) #15=(GO G190) G191
                    (EXIT (NREVERSE0 #12#))))
              (QREFELT $ 146))
             (SPADCALL |eta| |x| (QREFELT $ 66)) (QREFELT $ 147))
            . #13#)
      (EXIT
       (COND ((QEQCAR |c| 1) (CONS 1 "failed"))
             (#16='T
              (SEQ (LETT |v| (QCDR |c|) . #13#)
                   (LETT |g|
                         (SPADCALL |eta|
                                   (PROGN
                                    (LETT #6# NIL . #13#)
                                    (SEQ (LETT |yy| NIL . #13#)
                                         (LETT #10# |fns| . #13#)
                                         (LETT |i|
                                               (SPADCALL |v| (QREFELT $ 118))
                                               . #13#)
                                         (LETT #9# (QVSIZE |v|) . #13#) G190
                                         (COND
                                          ((OR (> |i| #9#) (ATOM #10#)
                                               (PROGN
                                                (LETT |yy| (CAR #10#) . #13#)
                                                NIL))
                                           #14#))
                                         (SEQ
                                          (EXIT
                                           (PROGN
                                            (LETT #8#
                                                  (SPADCALL (QAREF1O |v| |i| 1)
                                                            |yy|
                                                            (QREFELT $ 127))
                                                  . #13#)
                                            (COND
                                             (#6#
                                              (LETT #7#
                                                    (SPADCALL #7# #8#
                                                              (QREFELT $ 113))
                                                    . #13#))
                                             ('T
                                              (PROGN
                                               (LETT #7# #8# . #13#)
                                               (LETT #6# 'T . #13#)))))))
                                         (LETT |i|
                                               (PROG1 (+ |i| 1)
                                                 (LETT #10# (CDR #10#) . #13#))
                                               . #13#)
                                         #15# G191 (EXIT NIL))
                                    (COND (#6# #7#)
                                          (#16# (|spadConstant| $ 26))))
                                   (QREFELT $ 111))
                         . #13#)
                   (EXIT
                    (CONS 0
                          (SPADCALL
                           (PROGN
                            (LETT #1# NIL . #13#)
                            (SEQ (LETT |yy| NIL . #13#) (LETT #5# |fns| . #13#)
                                 (LETT |i| (SPADCALL |v| (QREFELT $ 118))
                                       . #13#)
                                 (LETT #4# (QVSIZE |v|) . #13#) G190
                                 (COND
                                  ((OR (> |i| #4#) (ATOM #5#)
                                       (PROGN
                                        (LETT |yy| (CAR #5#) . #13#)
                                        NIL))
                                   #14#))
                                 (SEQ
                                  (EXIT
                                   (PROGN
                                    (LETT #3#
                                          (SPADCALL
                                           (SPADCALL |yy| (QREFELT $ 109))
                                           (QAREF1O |v| |i| 1) (QREFELT $ 126))
                                          . #13#)
                                    (COND
                                     (#1#
                                      (LETT #2#
                                            (SPADCALL #2# #3# (QREFELT $ 108))
                                            . #13#))
                                     ('T
                                      (PROGN
                                       (LETT #2# #3# . #13#)
                                       (LETT #1# 'T . #13#)))))))
                                 (LETT |i|
                                       (PROG1 (+ |i| 1)
                                         (LETT #5# (CDR #5#) . #13#))
                                       . #13#)
                                 #15# G191 (EXIT NIL))
                            (COND (#1# #2#) (#16# (|spadConstant| $ 61))))
                           (SPADCALL |g| (QREFELT $ 109))
                           (QREFELT $ 108)))))))))))) 

(DEFUN |EFSTRUC;irootDep;KU;42| (|k| $)
  (PROG (|nv| |nk| |nr| |nf| |pr| |n| #1=#:G2487)
    (RETURN
     (SEQ
      (LETT |n|
            (PROG1
                (LETT #1#
                      (SPADCALL
                       (SPADCALL (SPADCALL |k| (QREFELT $ 32)) (QREFELT $ 122))
                       (QREFELT $ 123))
                      . #2=(|EFSTRUC;irootDep;KU;42|))
              (|check-subtype| (>= #1# 0) '(|NonNegativeInteger|) #1#))
            . #2#)
      (LETT |pr|
            (SPADCALL (|SPADfirst| (SPADCALL |k| (QREFELT $ 32))) |n|
                      (QREFELT $ 152))
            . #2#)
      (COND
       ((SPADCALL (QVELT |pr| 1) (|spadConstant| $ 61) (QREFELT $ 28))
        (COND
         ((NULL (EQL (QVELT |pr| 0) |n|))
          (EXIT
           (COND
            ((EQL (QVELT |pr| 0) 1)
             (CONS 1 (SPADCALL (QVELT |pr| 1) (QVELT |pr| 2) (QREFELT $ 108))))
            (#3='T
             (SEQ (LETT |nf| (SPADCALL (QVELT |pr| 0) (QREFELT $ 13)) . #2#)
                  (LETT |nr| (QVELT |pr| 2) . #2#)
                  (LETT |nk|
                        (SPADCALL (SPADCALL |k| (QREFELT $ 79))
                                  (LIST |nr| |nf|) (QREFELT $ 153))
                        . #2#)
                  (LETT |nv| (SPADCALL (QVELT |pr| 1) |nk| (QREFELT $ 108))
                        . #2#)
                  (EXIT (CONS 1 |nv|)))))))))
       (#3#
        (EXIT
         (COND
          ((EQL (QVELT |pr| 0) 1)
           (CONS 1 (SPADCALL (QVELT |pr| 1) (QVELT |pr| 2) (QREFELT $ 108))))
          (#3#
           (SEQ (LETT |nf| (SPADCALL (QVELT |pr| 0) (QREFELT $ 13)) . #2#)
                (LETT |nr| (QVELT |pr| 2) . #2#)
                (LETT |nk|
                      (SPADCALL (SPADCALL |k| (QREFELT $ 79)) (LIST |nr| |nf|)
                                (QREFELT $ 153))
                      . #2#)
                (LETT |nv| (SPADCALL (QVELT |pr| 1) |nk| (QREFELT $ 108))
                      . #2#)
                (EXIT (CONS 1 |nv|))))))))
      (EXIT (CONS 2 'T)))))) 

(DEFUN |EFSTRUC;irootDep;KU;43| (|k| $) (CONS 2 'T)) 

(DEFUN |EFSTRUC;rootDep| (|ker| |k| $)
  (PROG (#1=#:G2524 #2=#:G2523 #3=#:G2525 #4=#:G2528 |r|)
    (RETURN
     (SEQ
      (COND
       ((NULL
         (LETT |ker|
               (|EFSTRUC;toR| |ker| (|SPADfirst| (SPADCALL |k| (QREFELT $ 32)))
                $)
               . #5=(|EFSTRUC;rootDep|)))
        (SPADCALL |k| (QREFELT $ 155)))
       (#6='T
        (CONS 0
              (MAKEARR1 1
                        (SPADCALL
                         (SPADCALL
                          (SPADCALL
                           (SPADCALL (SPADCALL |k| (QREFELT $ 32))
                                     (QREFELT $ 122))
                           (QREFELT $ 123))
                          (PROGN
                           (LETT #1# NIL . #5#)
                           (SEQ (LETT |r| NIL . #5#) (LETT #4# |ker| . #5#)
                                G190
                                (COND
                                 ((OR (ATOM #4#)
                                      (PROGN (LETT |r| (CAR #4#) . #5#) NIL))
                                  (GO G191)))
                                (SEQ
                                 (EXIT
                                  (PROGN
                                   (LETT #3#
                                         (SPADCALL
                                          (SPADCALL
                                           (SPADCALL |r| (QREFELT $ 32))
                                           (QREFELT $ 122))
                                          (QREFELT $ 123))
                                         . #5#)
                                   (COND
                                    (#1#
                                     (LETT #2#
                                           (SPADCALL #2# #3# (QREFELT $ 156))
                                           . #5#))
                                    ('T
                                     (PROGN
                                      (LETT #2# #3# . #5#)
                                      (LETT #1# 'T . #5#)))))))
                                (LETT #4# (CDR #4#) . #5#) (GO G190) G191
                                (EXIT NIL))
                           (COND (#1# #2#) (#6# 1)))
                          (QREFELT $ 156))
                         (QREFELT $ 124)))))))))) 

(DEFUN |EFSTRUC;expeval| (|f| |lk| |k| |v| $)
  (PROG (|h| #1=#:G2542 #2=#:G2541 #3=#:G2543 #4=#:G2553 |a| #5=#:G2554 |z| |l|
         #6=#:G2552 |kk| #7=#:G2551 |lv| #8=#:G2550 |i| #9=#:G2549 |v0| |rec|
         |g| #10=#:G2531 #11=#:G2530 #12=#:G2532 #13=#:G2547 #14=#:G2548 |fns|
         |y|)
    (RETURN
     (SEQ
      (LETT |y| (|SPADfirst| (SPADCALL |k| (QREFELT $ 32)))
            . #15=(|EFSTRUC;expeval|))
      (LETT |fns| (|EFSTRUC;toY| |lk| $) . #15#)
      (LETT |g|
            (SPADCALL |y|
                      (PROGN
                       (LETT #10# NIL . #15#)
                       (SEQ (LETT |z| NIL . #15#) (LETT #14# |fns| . #15#)
                            (LETT |i| (SPADCALL |v| (QREFELT $ 118)) . #15#)
                            (LETT #13# (QVSIZE |v|) . #15#) G190
                            (COND
                             ((OR (> |i| #13#) (ATOM #14#)
                                  (PROGN (LETT |z| (CAR #14#) . #15#) NIL))
                              #16=(GO G191)))
                            (SEQ
                             (EXIT
                              (PROGN
                               (LETT #12#
                                     (SPADCALL (QAREF1O |v| |i| 1) |z|
                                               (QREFELT $ 127))
                                     . #15#)
                               (COND
                                (#10#
                                 (LETT #11#
                                       (SPADCALL #11# #12# (QREFELT $ 113))
                                       . #15#))
                                ('T
                                 (PROGN
                                  (LETT #11# #12# . #15#)
                                  (LETT #10# 'T . #15#)))))))
                            (LETT |i|
                                  (PROG1 (+ |i| 1)
                                    (LETT #14# (CDR #14#) . #15#))
                                  . #15#)
                            #17=(GO G190) G191 (EXIT NIL))
                       (COND (#10# #11#) (#18='T (|spadConstant| $ 26))))
                      (QREFELT $ 111))
            . #15#)
      (LETT |rec| (|EFSTRUC;goodCoef| |v| |lk| '|exp| $) . #15#)
      (EXIT
       (COND
        ((QEQCAR |rec| 1)
         (|EFSTRUC;expnosimp| |f| |lk| |k| |v| |fns|
          (SPADCALL |g| (QREFELT $ 109)) $))
        (#18#
         (SEQ
          (LETT |v0|
                (SPADCALL
                 (SPADCALL (QAREF1O |v| (QCAR (QCDR |rec|)) 1) (QREFELT $ 132))
                 (QREFELT $ 120))
                . #15#)
          (LETT |lv|
                (PROGN
                 (LETT #9# NIL . #15#)
                 (SEQ (LETT |i| (SPADCALL |v| (QREFELT $ 118)) . #15#)
                      (LETT #8# (QVSIZE |v|) . #15#) G190
                      (COND ((> |i| #8#) #16#))
                      (SEQ
                       (EXIT
                        (COND
                         ((COND ((EQL |i| (QCAR (QCDR |rec|))) 'NIL) (#18# 'T))
                          (LETT #9# (CONS (QAREF1O |v| |i| 1) #9#) . #15#)))))
                      (LETT |i| (+ |i| 1) . #15#) #17# G191
                      (EXIT (NREVERSE0 #9#))))
                . #15#)
          (LETT |l|
                (PROGN
                 (LETT #7# NIL . #15#)
                 (SEQ (LETT |kk| NIL . #15#) (LETT #6# |lk| . #15#) G190
                      (COND
                       ((OR (ATOM #6#)
                            (PROGN (LETT |kk| (CAR #6#) . #15#) NIL))
                        #16#))
                      (SEQ
                       (EXIT
                        (COND
                         ((COND
                           ((SPADCALL |kk| (QCDR (QCDR |rec|)) (QREFELT $ 98))
                            'NIL)
                           (#18# 'T))
                          (LETT #7# (CONS |kk| #7#) . #15#)))))
                      (LETT #6# (CDR #6#) . #15#) #17# G191
                      (EXIT (NREVERSE0 #7#))))
                . #15#)
          (LETT |h|
                (PROGN
                 (LETT #1# NIL . #15#)
                 (SEQ (LETT |z| NIL . #15#)
                      (LETT #5# (|EFSTRUC;toY| |l| $) . #15#)
                      (LETT |a| NIL . #15#) (LETT #4# |lv| . #15#) G190
                      (COND
                       ((OR (ATOM #4#) (PROGN (LETT |a| (CAR #4#) . #15#) NIL)
                            (ATOM #5#) (PROGN (LETT |z| (CAR #5#) . #15#) NIL))
                        #16#))
                      (SEQ
                       (EXIT
                        (PROGN
                         (LETT #3#
                               (SPADCALL (SPADCALL |z| (QREFELT $ 109))
                                         (-
                                          (SPADCALL
                                           (SPADCALL |a| |v0| (QREFELT $ 134))
                                           (QREFELT $ 120)))
                                         (QREFELT $ 140))
                               . #15#)
                         (COND
                          (#1#
                           (LETT #2# (SPADCALL #2# #3# (QREFELT $ 108))
                                 . #15#))
                          ('T
                           (PROGN
                            (LETT #2# #3# . #15#)
                            (LETT #1# 'T . #15#)))))))
                      (LETT #4# (PROG1 (CDR #4#) (LETT #5# (CDR #5#) . #15#))
                            . #15#)
                      #17# G191 (EXIT NIL))
                 (COND (#1# #2#) (#18# (|spadConstant| $ 61))))
                . #15#)
          (LETT |h|
                (SPADCALL
                 (SPADCALL |h|
                           (SPADCALL
                            (SPADCALL (SPADCALL |v0| |g| (QREFELT $ 133))
                                      (QREFELT $ 14))
                            (QREFELT $ 109))
                           (QREFELT $ 108))
                 (SPADCALL (SPADCALL |k| (QREFELT $ 93)) |v0| (QREFELT $ 140))
                 (QREFELT $ 108))
                . #15#)
          (EXIT
           (VECTOR
            (SPADCALL |f| (LIST (QCDR (QCDR |rec|))) (LIST |h|) (QREFELT $ 95))
            (LIST (QCDR (QCDR |rec|))) (LIST |h|))))))))))) 

(DEFUN |EFSTRUC;normalize;2F;46| (|f| $)
  (|EFSTRUC;rtNormalize|
   (|EFSTRUC;localnorm|
    (SPADCALL (SPADCALL |f| (QREFELT $ 24)) (QREFELT $ 157)) $)
   $)) 

(DEFUN |EFSTRUC;normalize;FSF;47| (|f| |x| $)
  (|EFSTRUC;rtNormalize|
   (QVELT
    (SPADCALL (SPADCALL (SPADCALL |f| |x| (QREFELT $ 21)) |x| (QREFELT $ 159))
              |x| (QREFELT $ 144))
    0)
   $)) 

(DEFUN |EFSTRUC;factdeprel| (|l| |k| $)
  (PROG (#1=#:G2592 #2=#:G2595 #3=#:G2590 #4=#:G2589 #5=#:G2591 #6=#:G2597 |i|
         |r| |m| #7=#:G2596 |x| #8=#:G2594 |n|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (EXIT
         (SEQ
          (SEQ
           (LETT |r|
                 (SPADCALL
                  (LETT |n| (|SPADfirst| (SPADCALL |k| (QREFELT $ 32)))
                        . #9=(|EFSTRUC;factdeprel|))
                  (QREFELT $ 52))
                 . #9#)
           (EXIT
            (COND
             ((QEQCAR |r| 0)
              (COND
               ((< 0 (QCDR |r|))
                (PROGN
                 (LETT #8#
                       (CONS 1
                             (SPADCALL (SPADCALL (QCDR |r|) (QREFELT $ 161))
                                       (QREFELT $ 13)))
                       . #9#)
                 (GO #8#))))))))
          (SEQ (LETT |x| NIL . #9#) (LETT #7# |l| . #9#) G190
               (COND
                ((OR (ATOM #7#) (PROGN (LETT |x| (CAR #7#) . #9#) NIL))
                 #10=(GO G191)))
               (SEQ
                (EXIT
                 (SEQ
                  (LETT |m| (|SPADfirst| (SPADCALL |x| (QREFELT $ 32))) . #9#)
                  (LETT |r|
                        (SPADCALL (SPADCALL |n| |m| (QREFELT $ 111))
                                  (QREFELT $ 52))
                        . #9#)
                  (EXIT
                   (COND
                    ((QEQCAR |r| 0)
                     (COND
                      ((< 0 (QCDR |r|))
                       (PROGN
                        (LETT #1#
                              (PROGN
                               (LETT #2#
                                     (CONS 1
                                           (SPADCALL
                                            (PROGN
                                             (LETT #3# NIL . #9#)
                                             (SEQ (LETT |i| 1 . #9#)
                                                  (LETT #6# (QCDR |r|) . #9#)
                                                  G190
                                                  (COND
                                                   ((QSGREATERP |i| #6#) #10#))
                                                  (SEQ
                                                   (EXIT
                                                    (PROGN
                                                     (LETT #5#
                                                           (SPADCALL |m|
                                                                     (SPADCALL
                                                                      |i|
                                                                      (QREFELT
                                                                       $ 13))
                                                                     (QREFELT $
                                                                              113))
                                                           . #9#)
                                                     (COND
                                                      (#3#
                                                       (LETT #4#
                                                             (SPADCALL #4# #5#
                                                                       (QREFELT
                                                                        $ 108))
                                                             . #9#))
                                                      ('T
                                                       (PROGN
                                                        (LETT #4# #5# . #9#)
                                                        (LETT #3# 'T
                                                              . #9#)))))))
                                                  (LETT |i| (QSADD1 |i|) . #9#)
                                                  #11=(GO G190) G191
                                                  (EXIT NIL))
                                             (COND (#3# #4#)
                                                   ('T (|spadConstant| $ 61))))
                                            (SPADCALL |x| (QREFELT $ 93))
                                            (QREFELT $ 108)))
                                     . #9#)
                               (GO #2#))
                              . #9#)
                        (GO #1#)))))))))
                #1# (EXIT #1#))
               (LETT #7# (CDR #7#) . #9#) #11# G191 (EXIT NIL))
          (EXIT (CONS 2 'T))))
        #8# (EXIT #8#)))
      #2# (EXIT #2#))))) 

(DEFUN |EFSTRUC;normalize;2F;49| (|f| $)
  (|EFSTRUC;rtNormalize| (|EFSTRUC;localnorm| (SPADCALL |f| (QREFELT $ 24)) $)
   $)) 

(DEFUN |EFSTRUC;normalize;FSF;50| (|f| |x| $)
  (|EFSTRUC;rtNormalize|
   (QVELT (SPADCALL (SPADCALL |f| |x| (QREFELT $ 21)) |x| (QREFELT $ 144)) 0)
   $)) 

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

(DEFUN |ElementaryFunctionStructurePackage;| (|#1| |#2|)
  (PROG (|pv$| $ |dv$| DV$2 DV$1)
    (RETURN
     (PROGN
      (LETT DV$1 (|devaluate| |#1|)
            . #1=(|ElementaryFunctionStructurePackage|))
      (LETT DV$2 (|devaluate| |#2|) . #1#)
      (LETT |dv$| (LIST '|ElementaryFunctionStructurePackage| DV$1 DV$2) . #1#)
      (LETT $ (GETREFV 162) . #1#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #1#))
      (|haddProp| |$ConstructorCache| '|ElementaryFunctionStructurePackage|
                  (LIST DV$1 DV$2) (CONS 1 $))
      (|stuffDomainSlots| $)
      (QSETREFV $ 6 |#1|)
      (QSETREFV $ 7 |#2|)
      (QSETREFV $ 8 '|htrig|)
      (QSETREFV $ 9 '|trig|)
      (QSETREFV $ 10 (|HasCategory| |#2| '(|CombinatorialOpsCategory|)))
      (QSETREFV $ 16
                (SPADCALL (SPADCALL (QREFELT $ 11))
                          (SPADCALL (SPADCALL 2 (QREFELT $ 13)) (QREFELT $ 14))
                          (QREFELT $ 15)))
      (COND
       ((|HasCategory| |#1| '(|GcdDomain|))
        (QSETREFV $ 50 (CONS (|dispatchFunction| |EFSTRUC;tanQ;F2F;10|) $)))
       ('T
        (QSETREFV $ 50 (CONS (|dispatchFunction| |EFSTRUC;tanQ;F2F;11|) $))))
      (QSETREFV $ 77 '|%alg|)
      (COND
       ((|HasCategory| |#1| '(|GcdDomain|))
        (PROGN
         (QSETREFV $ 155
                   (CONS (|dispatchFunction| |EFSTRUC;irootDep;KU;42|) $))))
       ('T
        (QSETREFV $ 155
                  (CONS (|dispatchFunction| |EFSTRUC;irootDep;KU;43|) $))))
      (COND
       ((|HasCategory| |#2| '(|CombinatorialOpsCategory|))
        (PROGN
         (QSETREFV $ 158
                   (CONS (|dispatchFunction| |EFSTRUC;normalize;2F;46|) $))
         (QSETREFV $ 160
                   (CONS (|dispatchFunction| |EFSTRUC;normalize;FSF;47|) $))))
       ('T
        (PROGN
         (QSETREFV $ 158
                   (CONS (|dispatchFunction| |EFSTRUC;normalize;2F;49|) $))
         (QSETREFV $ 160
                   (CONS (|dispatchFunction| |EFSTRUC;normalize;FSF;50|) $)))))
      $)))) 

(MAKEPROP '|ElementaryFunctionStructurePackage| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|local| |#2|) 'HTRIG
              'TRIG '|comb?| (0 . |pi|) (|Integer|) (4 . |coerce|) (9 . -)
              (14 . /) '|mpiover2| (|SparseMultivariatePolynomial| 6 92)
              (20 . |numer|) (25 . |denom|) (|Symbol|)
              |EFSTRUC;realElementary;FSF;2| (|List| 20) (30 . |variables|)
              |EFSTRUC;realElementary;2F;3| (35 . |Zero|) (39 . |Zero|)
              (|Boolean|) (43 . =) (|Kernel| 7) (49 . |is?|) (|List| 7)
              (55 . |argument|) (60 . |first|) (65 . |false|) (|Mapping| 27 29)
              (|List| 29) (69 . |select|) (|Fraction| 12) (75 . |denom|)
              (|SparseUnivariatePolynomial| 7) (|PositiveInteger|)
              (|TangentExpansions| 7) (80 . |tanAn|)
              (|SparseUnivariatePolynomial| $) (86 . |zeroOf|)
              (|AlgebraicManipulations| 6 7) (91 . |rootSimp|) (96 . |numer|)
              (101 . |tanNa|) (107 . |tanQ|) (|Union| 12 '#1="failed")
              (113 . |retractIfCan|) (118 . |tanSum|) (123 . |inv|)
              (128 . |tan|) (133 . |empty?|) (|List| 92) (138 . |tower|)
              (143 . |select!|) (149 . |One|) (153 . |One|)
              (|NonNegativeInteger|) (157 . |first|) (163 . |concat|)
              (169 . |concat|) (175 . |differentiate|) (|Vector| 7)
              (181 . |setelt|) (188 . |elt|) (|Matrix| 7) (194 . |new|)
              (201 . |setelt|) (|Union| 117 '"failed")
              (|IntegerLinearDependence| 7) (209 . |solveLinearlyOverQ|)
              (215 . |One|) 'ALGOP (|BasicOperator|) (219 . |operator|)
              (224 . |has?|) (230 . |elt|) (|Union| 38 '#1#)
              (236 . |retractIfCan|) (241 . |kernels|) (246 . =) (252 . -)
              (|List| 38) (|MultiplicativeDependence|) (257 . |logDependenceQ|)
              (263 . |new|) (267 . |kernel|) (|Kernel| $) (272 . |coerce|)
              (|List| $) (277 . |eval|) (284 . |log|) (289 . |atan|) (294 . =)
              (300 . |coerce|) (|Mapping| 7 29) (|Mapping| 7 6)
              (|SparseMultivariatePolynomial| 6 29)
              (|PolynomialCategoryLifting| (|IndexedExponents| 29) 29 6 102 7)
              (305 . |map|) (312 . |member?|) (318 . |zero?|) (323 . |last|)
              (328 . *) (334 . |exp|) (339 . ^) (345 . -) (351 . |sqrt|)
              (356 . +) (362 . *) (368 . |One|) (372 . |elt|) (|Vector| 38)
              (378 . |minIndex|) (383 . |elt|) (389 . |retract|)
              (394 . |nthRoot|) (400 . |second|) (405 . |retract|)
              (410 . |coerce|) (415 . /) (421 . ^) (427 . *)
              (433 . |retractIfCan|) (438 . |height|) (|Union| $ '"failed")
              (443 . |recip|) (448 . |inv|) (453 . *) (459 . *) (465 . |Zero|)
              (469 . |every?|)
              (|Record| (|:| |num| (|Vector| 12)) (|:| |den| 12))
              (|InnerCommonDenominator| 12 38 (|Vector| 12) 117)
              (475 . |splitDenominator|) (480 . ^) (486 . |setDifference|)
              (492 . |empty?|)
              (|Record| (|:| |func| 7) (|:| |kers| 36) (|:| |vals| 31))
              |EFSTRUC;rischNormalize;FSR;37| |EFSTRUC;rootNormalize;FKF;38|
              (497 . |construct|) (502 . |solveLinearlyOverQ|)
              (|Union| 7 '"failed") |EFSTRUC;validExponential;LFSU;41|
              (|Record| (|:| |exponent| 62) (|:| |coef| 7) (|:| |radicand| 7))
              (|PolynomialRoots| (|IndexedExponents| 29) 29 6 102 7)
              (508 . |froot|) (514 . |kernel|)
              (|Union| (|:| |vec| 117) (|:| |func| 7) (|:| |fail| 27))
              (520 . |irootDep|) (525 . |lcm|) (531 . |factorials|)
              (536 . |normalize|) (541 . |factorials|) (547 . |normalize|)
              (553 . |factorial|))
           '#(|validExponential| 558 |tanQ| 565 |rootNormalize| 571
              |rischNormalize| 577 |realElementary| 583 |normalize| 594
              |irootDep| 605)
           'NIL
           (CONS (|makeByteWordVec2| 1 'NIL)
                 (CONS '#()
                       (CONS '#()
                             (|makeByteWordVec2| 161
                                                 '(0 7 0 11 1 7 0 12 13 1 7 0 0
                                                   14 2 7 0 0 0 15 1 7 17 0 18
                                                   1 7 17 0 19 1 7 22 0 23 0 6
                                                   0 25 0 7 0 26 2 7 27 0 0 28
                                                   2 29 27 0 20 30 1 29 31 0 32
                                                   1 31 7 0 33 0 27 0 34 2 36 0
                                                   35 0 37 1 38 12 0 39 2 42 40
                                                   7 41 43 1 7 0 44 45 1 46 7 7
                                                   47 1 38 12 0 48 2 42 7 7 12
                                                   49 2 0 7 38 7 50 1 7 51 0 52
                                                   1 42 7 31 53 1 7 0 0 54 1 7
                                                   0 0 55 1 22 27 0 56 1 7 57 0
                                                   58 2 36 0 35 0 59 0 6 0 60 0
                                                   7 0 61 2 36 0 0 62 63 2 36 0
                                                   0 0 64 2 31 0 0 0 65 2 7 0 0
                                                   20 66 3 67 7 0 12 7 68 2 67
                                                   7 0 12 69 3 70 0 62 62 7 71
                                                   4 70 7 0 12 12 7 72 2 74 73
                                                   70 67 75 0 38 0 76 1 29 78 0
                                                   79 2 78 27 0 20 80 2 31 7 0
                                                   12 81 1 7 82 0 83 1 7 57 0
                                                   84 2 38 27 0 0 85 1 38 0 0
                                                   86 2 88 73 87 38 89 0 20 0
                                                   90 1 29 0 20 91 1 7 0 92 93
                                                   3 7 0 0 57 94 95 1 7 0 0 96
                                                   1 7 0 0 97 2 29 27 0 0 98 1
                                                   7 0 6 99 3 103 7 100 101 102
                                                   104 2 22 27 20 0 105 1 7 27
                                                   0 106 1 31 7 0 107 2 7 0 0 0
                                                   108 1 7 0 0 109 2 7 0 0 41
                                                   110 2 7 0 0 0 111 1 7 0 0
                                                   112 2 7 0 0 0 113 2 7 0 41 0
                                                   114 0 102 0 115 2 7 0 78 94
                                                   116 1 117 12 0 118 2 117 38
                                                   0 12 119 1 38 12 0 120 2 7 0
                                                   0 12 121 1 31 7 0 122 1 7 12
                                                   0 123 1 38 0 12 124 2 38 0 0
                                                   0 125 2 7 0 0 38 126 2 7 0
                                                   38 0 127 1 38 51 0 128 1 29
                                                   62 0 129 1 38 130 0 131 1 38
                                                   0 0 132 2 7 0 12 0 133 2 38
                                                   0 0 12 134 0 38 0 135 2 36
                                                   27 35 0 136 1 138 137 117
                                                   139 2 7 0 0 12 140 2 22 0 0
                                                   0 141 1 117 27 0 142 1 67 0
                                                   31 146 2 74 73 67 7 147 2
                                                   151 150 7 62 152 2 7 0 78 94
                                                   153 1 0 154 29 155 2 12 0 0
                                                   0 156 1 7 0 0 157 1 0 7 7
                                                   158 2 7 0 0 20 159 2 0 7 7
                                                   20 160 1 12 0 0 161 3 0 148
                                                   36 7 20 149 2 0 7 38 7 50 2
                                                   0 7 7 29 145 2 0 143 7 20
                                                   144 1 0 7 7 24 2 0 7 7 20 21
                                                   2 0 7 7 20 160 1 0 7 7 158 1
                                                   0 154 29 155)))))
           '|lookupComplete|)) 
