
(/VERSIONCHECK 2) 

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

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

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

(DEFUN |LIMITRF;limit;FEU;3!0| (|#1| $)
  (SPADCALL |#1| (QREFELT $ 29))) 

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

(DEFUN |LIMITRF;complexLimit;FEOpc;4!0| (|#1| $)
  (SPADCALL |#1| (QREFELT $ 29))) 

(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 (|n| |d|)
    (RETURN
      (COND
        ((SPADCALL
             (LETT |n|
                   (SPADCALL (SPADCALL |f| (QREFELT $ 54)) |a|
                       (QREFELT $ 55))
                   . #0=(|LIMITRF;finiteComplexLimit|))
             (QREFELT $ 57))
         (|spadConstant| $ 58))
        ((SPADCALL
             (LETT |d|
                   (SPADCALL (SPADCALL |f| (QREFELT $ 59)) |a|
                       (QREFELT $ 55)) . #0#)
             (QREFELT $ 57))
         (SPADCALL (QREFELT $ 60)))
        ('T
         (SPADCALL (SPADCALL |n| |d| (QREFELT $ 61)) (QREFELT $ 20))))))) 

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

(DEFUN |LIMITRF;locallimit| (|f| |x| |a| $)
  (PROG (|g| |n| |dd| |dn| |sn| |sd|)
    (RETURN
      (SEQ (LETT |g| (SPADCALL |f| |x| (QREFELT $ 68))
                 . #0=(|LIMITRF;locallimit|))
           (EXIT (COND
                   ((QSZEROP (LETT |n|
                                   (SPADCALL |a| (QREFELT $ 70)) . #0#))
                    (|LIMITRF;finiteLimit| |g|
                        (SPADCALL |a| (QREFELT $ 71)) $))
                   ('T
                    (SEQ (LETT |dd|
                               (SPADCALL (SPADCALL |g| (QREFELT $ 59))
                                   (QREFELT $ 73)) . #0#)
                         (LETT |dn|
                               (SPADCALL (SPADCALL |g| (QREFELT $ 54))
                                   (QREFELT $ 73)) . #0#)
                         (EXIT (COND
                                 ((< |dd| |dn|)
                                  (SEQ (LETT |sn|
                                        (SPADCALL
                                         (SPADCALL |g| (QREFELT $ 54))
                                         |n| (ELT $ 45) (QREFELT $ 74)) . #0#)
                                       (EXIT
                                        (COND
                                          ((QEQCAR |sn| 1)
                                           (CONS 2 "failed"))
                                          ('T
                                           (SEQ
                                            (LETT |sd|
                                             (SPADCALL
                                              (SPADCALL |g|
                                               (QREFELT $ 59))
                                              |n| (ELT $ 45)
                                              (QREFELT $ 74)) . #0#)
                                            (EXIT
                                             (COND
                                               ((QEQCAR |sd| 1)
                                                (CONS 2 "failed"))
                                               ('T
                                                (CONS 0
                                                 (SPADCALL
                                                  (* (QCDR |sn|)
                                                   (QCDR |sd|))
                                                  (SPADCALL
                                                   (QREFELT $ 51))
                                                  (QREFELT $ 52))))))))))))
                                 ((< |dn| |dd|)
                                  (CONS 0 (|spadConstant| $ 62)))
                                 ('T
                                  (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 (|xx| |x| |a| |g| |n| |d| |s|)
    (RETURN
      (SEQ (LETT |xx|
                 (SPADCALL (SPADCALL |eq| (QREFELT $ 9))
                     (QREFELT $ 11))
                 . #0=(|LIMITRF;limit;FESU;9|))
           (EXIT (COND
                   ((QEQCAR |xx| 1)
                    (|error| "limit: left hand side must be a variable"))
                   ('T
                    (SEQ (LETT |x| (QCDR |xx|) . #0#)
                         (LETT |a|
                               (SPADCALL |eq| (QREFELT $ 12)) . #0#)
                         (EXIT (COND
                                 ((SPADCALL
                                      (LETT |n|
                                       (SPADCALL
                                        (SPADCALL
                                         (LETT |g|
                                          (SPADCALL |f| |x|
                                           (QREFELT $ 68)) . #0#)
                                         (QREFELT $ 54))
                                        |a| (QREFELT $ 55)) . #0#)
                                      (QREFELT $ 57))
                                  (CONS 0 (|spadConstant| $ 62)))
                                 ((SPADCALL
                                      (LETT |d|
                                       (SPADCALL
                                        (SPADCALL |g| (QREFELT $ 59))
                                        |a| (QREFELT $ 55)) . #0#)
                                      (QREFELT $ 57))
                                  (SEQ (LETT |s|
                                        (SPADCALL |n| (QREFELT $ 45)) . #0#)
                                       (EXIT
                                        (COND
                                          ((QEQCAR |s| 1)
                                           (CONS 1 "failed"))
                                          ('T
                                           (|LIMITRF;fLimit| (QCDR |s|)
                                            (SPADCALL |g|
                                             (QREFELT $ 59))
                                            |a|
                                            (SPADCALL |st|
                                             (QREFELT $ 78))
                                            $))))))
                                 ('T
                                  (CONS 0
                                        (SPADCALL
                                         (SPADCALL |n| |d|
                                          (QREFELT $ 61))
                                         (QREFELT $ 14)))))))))))))) 

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

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

(DEFUN |RationalFunctionLimitPackage;| (|#1|)
  (PROG (DV$1 |dv$| $ |pv$|)
    (RETURN
      (PROGN
        (LETT DV$1 (|devaluate| |#1|)
              . #0=(|RationalFunctionLimitPackage|))
        (LETT |dv$| (LIST '|RationalFunctionLimitPackage| DV$1) . #0#)
        (LETT $ (GETREFV 82) . #0#)
        (QSETREFV $ 0 |dv$|)
        (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #0#))
        (|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 '"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 '"failed")
             (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|)) 
