
(/VERSIONCHECK 2) 

(DEFUN |LIMITRF;limit;FEU;1| (|f| |eq| $)
  (PROG (|a| |x| |xx|)
    (RETURN
     (SEQ
      (LETT |xx| (SPADCALL (SPADCALL |eq| (QREFELT $ 9)) (QREFELT $ 11))
            . #1=(|LIMITRF;limit;FEU;1|))
      (EXIT
       (COND
        ((QEQCAR |xx| 1) (|error| "limit: left hand side must be a variable"))
        ('T
         (SEQ (LETT |x| (QCDR |xx|) . #1#)
              (LETT |a| (SPADCALL |eq| (QREFELT $ 12)) . #1#)
              (EXIT
               (|LIMITRF;locallimit| |f| |x| (SPADCALL |a| (QREFELT $ 14))
                $)))))))))) 

(DEFUN |LIMITRF;complexLimit;FEOpc;2| (|f| |eq| $)
  (PROG (|a| |x| |xx|)
    (RETURN
     (SEQ
      (LETT |xx| (SPADCALL (SPADCALL |eq| (QREFELT $ 9)) (QREFELT $ 11))
            . #1=(|LIMITRF;complexLimit;FEOpc;2|))
      (EXIT
       (COND
        ((QEQCAR |xx| 1) (|error| "limit: left hand side must be a variable"))
        ('T
         (SEQ (LETT |x| (QCDR |xx|) . #1#)
              (LETT |a| (SPADCALL |eq| (QREFELT $ 12)) . #1#)
              (EXIT
               (|LIMITRF;locallimitcomplex| |f| |x|
                (SPADCALL |a| (QREFELT $ 20)) $)))))))))) 

(DEFUN |LIMITRF;limit;FEU;3| (|f| |eq| $)
  (PROG (|a| |x| |xx| |p|)
    (RETURN
     (SEQ
      (LETT |p| (SPADCALL (SPADCALL |eq| (QREFELT $ 24)) (QREFELT $ 26))
            . #1=(|LIMITRF;limit;FEU;3|))
      (EXIT
       (COND
        ((QEQCAR |p| 1) (|error| "limit: left hand side must be a variable"))
        (#2='T
         (SEQ (LETT |xx| (SPADCALL (QCDR |p|) (QREFELT $ 28)) . #1#)
              (EXIT
               (COND
                ((QEQCAR |xx| 1)
                 (|error| "limit: left hand side must be a variable"))
                (#2#
                 (SEQ (LETT |x| (QCDR |xx|) . #1#)
                      (LETT |a|
                            (SPADCALL (ELT $ 29) (SPADCALL |eq| (QREFELT $ 30))
                                      (QREFELT $ 33))
                            . #1#)
                      (EXIT (|LIMITRF;locallimit| |f| |x| |a| $)))))))))))))) 

(DEFUN |LIMITRF;complexLimit;FEOpc;4| (|f| |eq| $)
  (PROG (|a| |x| |xx| |p|)
    (RETURN
     (SEQ
      (LETT |p| (SPADCALL (SPADCALL |eq| (QREFELT $ 37)) (QREFELT $ 38))
            . #1=(|LIMITRF;complexLimit;FEOpc;4|))
      (EXIT
       (COND
        ((QEQCAR |p| 1) (|error| "limit: left hand side must be a variable"))
        (#2='T
         (SEQ (LETT |xx| (SPADCALL (QCDR |p|) (QREFELT $ 28)) . #1#)
              (EXIT
               (COND
                ((QEQCAR |xx| 1)
                 (|error| "limit: left hand side must be a variable"))
                (#2#
                 (SEQ (LETT |x| (QCDR |xx|) . #1#)
                      (LETT |a|
                            (SPADCALL (ELT $ 29) (SPADCALL |eq| (QREFELT $ 39))
                                      (QREFELT $ 41))
                            . #1#)
                      (EXIT
                       (|LIMITRF;locallimitcomplex| |f| |x| |a| $)))))))))))))) 

(DEFUN |LIMITRF;fLimit| (|n| |d| |a| |dir| $)
  (PROG (|s|)
    (RETURN
     (SEQ
      (LETT |s| (SPADCALL |d| |a| |dir| (ELT $ 45) (QREFELT $ 50))
            |LIMITRF;fLimit|)
      (EXIT
       (COND ((QEQCAR |s| 1) (CONS 1 "failed"))
             ('T
              (CONS 0
                    (SPADCALL (* |n| (QCDR |s|)) (SPADCALL (QREFELT $ 51))
                              (QREFELT $ 52)))))))))) 

(DEFUN |LIMITRF;finiteComplexLimit| (|f| |a| $)
  (PROG (|d| |n|)
    (RETURN
     (COND
      ((SPADCALL
        (LETT |n| (SPADCALL (SPADCALL |f| (QREFELT $ 54)) |a| (QREFELT $ 55))
              . #1=(|LIMITRF;finiteComplexLimit|))
        (QREFELT $ 57))
       (|spadConstant| $ 58))
      ((SPADCALL
        (LETT |d| (SPADCALL (SPADCALL |f| (QREFELT $ 59)) |a| (QREFELT $ 55))
              . #1#)
        (QREFELT $ 57))
       (SPADCALL (QREFELT $ 60)))
      ('T (SPADCALL (SPADCALL |n| |d| (QREFELT $ 61)) (QREFELT $ 20))))))) 

(DEFUN |LIMITRF;finiteLimit| (|f| |a| $)
  (PROG (|lhsl| |rhsl| |s| |d| |n|)
    (RETURN
     (SEQ
      (COND
       ((SPADCALL
         (LETT |n| (SPADCALL (SPADCALL |f| (QREFELT $ 54)) |a| (QREFELT $ 55))
               . #1=(|LIMITRF;finiteLimit|))
         (QREFELT $ 57))
        (CONS 0 (|spadConstant| $ 62)))
       ((SPADCALL
         (LETT |d| (SPADCALL (SPADCALL |f| (QREFELT $ 59)) |a| (QREFELT $ 55))
               . #1#)
         (QREFELT $ 57))
        (SEQ (LETT |s| (SPADCALL |n| (QREFELT $ 45)) . #1#)
             (EXIT
              (COND ((QEQCAR |s| 1) (CONS 2 "failed"))
                    (#2='T
                     (SEQ
                      (LETT |rhsl|
                            (|LIMITRF;fLimit| (QCDR |s|)
                             (SPADCALL |f| (QREFELT $ 59)) |a| 1 $)
                            . #1#)
                      (LETT |lhsl|
                            (|LIMITRF;fLimit| (QCDR |s|)
                             (SPADCALL |f| (QREFELT $ 59)) |a| -1 $)
                            . #1#)
                      (EXIT
                       (COND
                        ((QEQCAR |rhsl| 1)
                         (COND ((QEQCAR |lhsl| 1) (CONS 2 "failed"))
                               (#2# (CONS 1 (CONS |lhsl| |rhsl|)))))
                        ((QEQCAR |lhsl| 1) (CONS 1 (CONS |lhsl| |rhsl|)))
                        ((SPADCALL (QCDR |rhsl|) (QCDR |lhsl|) (QREFELT $ 65))
                         (CONS 0 (QCDR |lhsl|)))
                        (#2# (CONS 1 (CONS |lhsl| |rhsl|)))))))))))
       (#2#
        (CONS 0
              (SPADCALL (SPADCALL |n| |d| (QREFELT $ 61)) (QREFELT $ 14))))))))) 

(DEFUN |LIMITRF;locallimit| (|f| |x| |a| $)
  (PROG (|sd| |sn| |dn| |dd| |n| |g|)
    (RETURN
     (SEQ
      (LETT |g| (SPADCALL |f| |x| (QREFELT $ 68)) . #1=(|LIMITRF;locallimit|))
      (EXIT
       (COND
        ((QSZEROP (LETT |n| (SPADCALL |a| (QREFELT $ 70)) . #1#))
         (|LIMITRF;finiteLimit| |g| (SPADCALL |a| (QREFELT $ 71)) $))
        (#2='T
         (SEQ
          (LETT |dd| (SPADCALL (SPADCALL |g| (QREFELT $ 59)) (QREFELT $ 73))
                . #1#)
          (LETT |dn| (SPADCALL (SPADCALL |g| (QREFELT $ 54)) (QREFELT $ 73))
                . #1#)
          (EXIT
           (COND
            ((< |dd| |dn|)
             (SEQ
              (LETT |sn|
                    (SPADCALL (SPADCALL |g| (QREFELT $ 54)) |n| (ELT $ 45)
                              (QREFELT $ 74))
                    . #1#)
              (EXIT
               (COND ((QEQCAR |sn| 1) (CONS 2 "failed"))
                     (#2#
                      (SEQ
                       (LETT |sd|
                             (SPADCALL (SPADCALL |g| (QREFELT $ 59)) |n|
                                       (ELT $ 45) (QREFELT $ 74))
                             . #1#)
                       (EXIT
                        (COND ((QEQCAR |sd| 1) (CONS 2 "failed"))
                              (#2#
                               (CONS 0
                                     (SPADCALL (* (QCDR |sn|) (QCDR |sd|))
                                               (SPADCALL (QREFELT $ 51))
                                               (QREFELT $ 52))))))))))))
            ((< |dn| |dd|) (CONS 0 (|spadConstant| $ 62)))
            (#2#
             (CONS 0
                   (SPADCALL
                    (SPADCALL
                     (SPADCALL (SPADCALL |g| (QREFELT $ 54)) (QREFELT $ 75))
                     (SPADCALL (SPADCALL |g| (QREFELT $ 59)) (QREFELT $ 75))
                     (QREFELT $ 61))
                    (QREFELT $ 14)))))))))))))) 

(DEFUN |LIMITRF;limit;FESU;9| (|f| |eq| |st| $)
  (PROG (|s| |d| |n| |g| |a| |x| |xx|)
    (RETURN
     (SEQ
      (LETT |xx| (SPADCALL (SPADCALL |eq| (QREFELT $ 9)) (QREFELT $ 11))
            . #1=(|LIMITRF;limit;FESU;9|))
      (EXIT
       (COND
        ((QEQCAR |xx| 1) (|error| "limit: left hand side must be a variable"))
        (#2='T
         (SEQ (LETT |x| (QCDR |xx|) . #1#)
              (LETT |a| (SPADCALL |eq| (QREFELT $ 12)) . #1#)
              (EXIT
               (COND
                ((SPADCALL
                  (LETT |n|
                        (SPADCALL
                         (SPADCALL
                          (LETT |g| (SPADCALL |f| |x| (QREFELT $ 68)) . #1#)
                          (QREFELT $ 54))
                         |a| (QREFELT $ 55))
                        . #1#)
                  (QREFELT $ 57))
                 (CONS 0 (|spadConstant| $ 62)))
                ((SPADCALL
                  (LETT |d|
                        (SPADCALL (SPADCALL |g| (QREFELT $ 59)) |a|
                                  (QREFELT $ 55))
                        . #1#)
                  (QREFELT $ 57))
                 (SEQ (LETT |s| (SPADCALL |n| (QREFELT $ 45)) . #1#)
                      (EXIT
                       (COND ((QEQCAR |s| 1) (CONS 1 "failed"))
                             (#2#
                              (|LIMITRF;fLimit| (QCDR |s|)
                               (SPADCALL |g| (QREFELT $ 59)) |a|
                               (SPADCALL |st| (QREFELT $ 78)) $))))))
                (#2#
                 (CONS 0
                       (SPADCALL (SPADCALL |n| |d| (QREFELT $ 61))
                                 (QREFELT $ 14)))))))))))))) 

(DEFUN |LIMITRF;locallimitcomplex| (|f| |x| |a| $)
  (PROG (|dn| |dd| |r| |g|)
    (RETURN
     (SEQ
      (LETT |g| (SPADCALL |f| |x| (QREFELT $ 68))
            . #1=(|LIMITRF;locallimitcomplex|))
      (LETT |r| (SPADCALL |a| (QREFELT $ 81)) . #1#)
      (EXIT
       (COND ((QEQCAR |r| 0) (|LIMITRF;finiteComplexLimit| |g| (QCDR |r|) $))
             (#2='T
              (SEQ
               (LETT |dd|
                     (SPADCALL (SPADCALL |g| (QREFELT $ 59)) (QREFELT $ 73))
                     . #1#)
               (LETT |dn|
                     (SPADCALL (SPADCALL |g| (QREFELT $ 54)) (QREFELT $ 73))
                     . #1#)
               (EXIT
                (COND ((< |dd| |dn|) (SPADCALL (QREFELT $ 60)))
                      ((< |dn| |dd|) (|spadConstant| $ 58))
                      (#2#
                       (SPADCALL
                        (SPADCALL
                         (SPADCALL (SPADCALL |g| (QREFELT $ 54))
                                   (QREFELT $ 75))
                         (SPADCALL (SPADCALL |g| (QREFELT $ 59))
                                   (QREFELT $ 75))
                         (QREFELT $ 61))
                        (QREFELT $ 20))))))))))))) 

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

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

(MAKEPROP '|RationalFunctionLimitPackage| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|Fraction| 27)
              (|Equation| 7) (0 . |lhs|) (|Union| 66 '"failed")
              (5 . |retractIfCan|) (10 . |rhs|) (|OrderedCompletion| 7)
              (15 . |coerce|) (|Union| 13 '"failed")
              (|Record| (|:| |leftHandLimit| 15) (|:| |rightHandLimit| 15))
              (|Union| 13 16 '"failed") |LIMITRF;limit;FEU;1|
              (|OnePointCompletion| 7) (20 . |coerce|)
              |LIMITRF;complexLimit;FEOpc;2| (|OrderedCompletion| 27)
              (|Equation| 22) (25 . |lhs|) (|Union| 27 '#1="failed")
              (30 . |retractIfCan|) (|Polynomial| 6) (35 . |retractIfCan|)
              (40 . |coerce|) (45 . |rhs|) (|Mapping| 7 27)
              (|OrderedCompletionFunctions2| 27 7) (50 . |map|)
              |LIMITRF;limit;FEU;3| (|OnePointCompletion| 27) (|Equation| 35)
              (56 . |lhs|) (61 . |retractIfCan|) (66 . |rhs|)
              (|OnePointCompletionFunctions2| 27 7) (71 . |map|)
              |LIMITRF;complexLimit;FEOpc;4| (|Union| 47 '"failed")
              (|RationalFunctionSign| 6) (77 . |sign|)
              (|SparseUnivariatePolynomial| 7) (|Integer|) (|Mapping| 43 7)
              (|InnerPolySign| 7 46) (82 . |signAround|) (90 . |plusInfinity|)
              (94 . *) (|Fraction| 46) (100 . |numer|) (105 . |elt|)
              (|Boolean|) (111 . |zero?|) (116 . |Zero|) (120 . |denom|)
              (125 . |infinity|) (129 . /) (135 . |Zero|) (139 . |One|)
              (143 . |One|) (147 . =) (|Symbol|)
              (|PolynomialCategoryQuotientFunctions| (|IndexedExponents| 66) 66
                                                     6 27 7)
              (153 . |univariate|) (|SingleInteger|) (159 . |whatInfinity|)
              (164 . |retract|) (|NonNegativeInteger|) (169 . |degree|)
              (174 . |signAround|) (181 . |leadingCoefficient|) (|String|)
              (|ToolsForSign| 6) (186 . |direction|) |LIMITRF;limit;FESU;9|
              (|Union| 7 '#1#) (191 . |retractIfCan|))
           '#(|limit| 196 |complexLimit| 215) 'NIL
           (CONS (|makeByteWordVec2| 1 'NIL)
                 (CONS '#()
                       (CONS '#()
                             (|makeByteWordVec2| 81
                                                 '(1 8 7 0 9 1 7 10 0 11 1 8 7
                                                   0 12 1 13 0 7 14 1 19 0 7 20
                                                   1 23 22 0 24 1 22 25 0 26 1
                                                   27 10 0 28 1 7 0 27 29 1 23
                                                   22 0 30 2 32 13 31 22 33 1
                                                   36 35 0 37 1 35 25 0 38 1 36
                                                   35 0 39 2 40 19 31 35 41 1
                                                   44 43 7 45 4 49 43 46 7 47
                                                   48 50 0 13 0 51 2 13 0 47 0
                                                   52 1 53 46 0 54 2 46 7 0 7
                                                   55 1 7 56 0 57 0 19 0 58 1
                                                   53 46 0 59 0 19 0 60 2 7 0 0
                                                   0 61 0 13 0 62 0 6 0 63 0 53
                                                   0 64 2 13 56 0 0 65 2 67 53
                                                   7 66 68 1 13 69 0 70 1 13 7
                                                   0 71 1 46 72 0 73 3 49 43 46
                                                   47 48 74 1 46 7 0 75 1 77 47
                                                   76 78 1 19 80 0 81 2 0 17 7
                                                   8 18 2 0 17 7 23 34 3 0 15 7
                                                   8 76 79 2 0 19 7 36 42 2 0
                                                   19 7 8 21)))))
           '|lookupComplete|)) 
