
(/VERSIONCHECK 2) 

(DEFUN |DEFINTRF;integrate;FSbU;1| (|f| |s| $)
  (|DEFINTRF;int| |f| (SPADCALL |s| (QREFELT $ 9))
      (SPADCALL (SPADCALL |s| (QREFELT $ 11)) (QREFELT $ 13))
      (SPADCALL (SPADCALL |s| (QREFELT $ 11)) (QREFELT $ 14)) 'NIL $)) 

(DEFUN |DEFINTRF;nopole| (|f| |x| |a| |b| $)
  (PROG (|k| |u| |g| #0=#:G1847 |v| #1=#:G1846 |ans|)
    (RETURN
      (SEQ (EXIT (SEQ (LETT |k| (SPADCALL |x| (QREFELT $ 19))
                            . #2=(|DEFINTRF;nopole|))
                      (LETT |u|
                            (SPADCALL |f| |x| (QREFELT $ 22)) . #2#)
                      (EXIT (COND
                              ((QEQCAR |u| 0)
                               (SEQ (LETT |v|
                                     (SPADCALL |k| (QCDR |u|) |a| |b|
                                      'T (QREFELT $ 27)) . #2#)
                                    (EXIT
                                     (COND
                                       ((QEQCAR |v| 1)
                                        (CONS 2 "failed"))
                                       (#3='T (CONS 0 (QCDR |v|)))))))
                              (#3#
                               (SEQ (LETT |ans| NIL . #2#)
                                    (SEQ (LETT |g| NIL . #2#)
                                     (LETT #0# (QCDR |u|) . #2#) G190
                                     (COND
                                       ((OR (ATOM #0#)
                                         (PROGN
                                           (LETT |g| (CAR #0#) . #2#)
                                           NIL))
                                        (GO G191)))
                                     (SEQ
                                      (LETT |v|
                                       (SPADCALL |k| |g| |a| |b| 'T
                                        (QREFELT $ 27)) . #2#)
                                      (EXIT
                                       (COND
                                         ((QEQCAR |v| 1)
                                          (PROGN
                                            (LETT #1#
                                             (CONS 2 "failed") . #2#)
                                            (GO #1#)))
                                         ('T
                                          (LETT |ans|
                                           (SPADCALL |ans|
                                            (LIST (QCDR |v|))
                                            (QREFELT $ 29)) . #2#)))))
                                     (LETT #0# (CDR #0#) . #2#)
                                     (GO G190) G191 (EXIT NIL))
                                    (EXIT (CONS 1 |ans|))))))))
           #1# (EXIT #1#))))) 

(DEFUN |DEFINTRF;integrate;FSbU;3| (|f| |s| $)
  (|DEFINTRF;int| |f| (SPADCALL |s| (QREFELT $ 31))
      (SPADCALL (CONS #'|DEFINTRF;integrate;FSbU;3!0| $)
          (SPADCALL (SPADCALL |s| (QREFELT $ 34)) (QREFELT $ 36))
          (QREFELT $ 39))
      (SPADCALL (CONS #'|DEFINTRF;integrate;FSbU;3!1| $)
          (SPADCALL (SPADCALL |s| (QREFELT $ 34)) (QREFELT $ 40))
          (QREFELT $ 39))
      'NIL $)) 

(DEFUN |DEFINTRF;integrate;FSbU;3!1| (|#1| $)
  (SPADCALL |#1| (QREFELT $ 32))) 

(DEFUN |DEFINTRF;integrate;FSbU;3!0| (|#1| $)
  (SPADCALL |#1| (QREFELT $ 32))) 

(DEFUN |DEFINTRF;integrate;FSbSU;4| (|f| |s| |str| $)
  (|DEFINTRF;int| |f| (SPADCALL |s| (QREFELT $ 31))
      (SPADCALL (CONS #'|DEFINTRF;integrate;FSbSU;4!0| $)
          (SPADCALL (SPADCALL |s| (QREFELT $ 34)) (QREFELT $ 36))
          (QREFELT $ 39))
      (SPADCALL (CONS #'|DEFINTRF;integrate;FSbSU;4!1| $)
          (SPADCALL (SPADCALL |s| (QREFELT $ 34)) (QREFELT $ 40))
          (QREFELT $ 39))
      (SPADCALL |str| (QREFELT $ 43)) $)) 

(DEFUN |DEFINTRF;integrate;FSbSU;4!1| (|#1| $)
  (SPADCALL |#1| (QREFELT $ 32))) 

(DEFUN |DEFINTRF;integrate;FSbSU;4!0| (|#1| $)
  (SPADCALL |#1| (QREFELT $ 32))) 

(DEFUN |DEFINTRF;integrate;FSbSU;5| (|f| |s| |str| $)
  (|DEFINTRF;int| |f| (SPADCALL |s| (QREFELT $ 9))
      (SPADCALL (SPADCALL |s| (QREFELT $ 11)) (QREFELT $ 13))
      (SPADCALL (SPADCALL |s| (QREFELT $ 11)) (QREFELT $ 14))
      (SPADCALL |str| (QREFELT $ 43)) $)) 

(DEFUN |DEFINTRF;int| (|f| |x| |a| |b| |ignor?| $)
  (PROG (|z|)
    (RETURN
      (SEQ (COND
             ((SPADCALL |a| |b| (QREFELT $ 46))
              (CONS 0 (|spadConstant| $ 47)))
             (#0='T
              (SEQ (LETT |z|
                         (SPADCALL (SPADCALL |f| (QREFELT $ 49)) |x|
                             |a| |b| 'T (QREFELT $ 51))
                         |DEFINTRF;int|)
                   (EXIT (COND
                           ((QEQCAR |z| 1)
                            (COND
                              (|ignor?|
                                  (|DEFINTRF;nopole| |f| |x| |a| |b| $))
                              (#0# (CONS 3 "potentialPole"))))
                           ((QCDR |z|)
                            (|error| "integrate: pole in path of integration"))
                           (#0# (|DEFINTRF;nopole| |f| |x| |a| |b| $))))))))))) 

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

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

(MAKEPROP '|RationalFunctionDefiniteIntegration| '|infovec|
    (LIST '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|Symbol|)
             (|SegmentBinding| 12) (0 . |variable|) (|Segment| 12)
             (5 . |segment|) (|OrderedCompletion| 24) (10 . |lo|)
             (15 . |hi|)
             (|Union| (|:| |f1| 12) (|:| |f2| 28)
                      (|:| |fail| '"failed")
                      (|:| |pole| '"potentialPole"))
             (|Fraction| 48) |DEFINTRF;integrate;FSbU;1| (|Kernel| 24)
             (20 . |kernel|) (|Union| 24 (|List| 24))
             (|IntegrationResultRFToFunction| 6) (25 . |integrate|)
             (|Union| 12 '"failed") (|Expression| 6) (|Boolean|)
             (|DefiniteIntegrationTools| 6 24) (31 . |computeInt|)
             (|List| 12) (40 . |concat!|) (|SegmentBinding| 35)
             (46 . |variable|) (51 . |coerce|) (|Segment| 35)
             (56 . |segment|) (|OrderedCompletion| 16) (61 . |lo|)
             (|Mapping| 24 16) (|OrderedCompletionFunctions2| 16 24)
             (66 . |map|) (72 . |hi|) |DEFINTRF;integrate;FSbU;3|
             (|String|) (77 . |ignore?|) |DEFINTRF;integrate;FSbSU;4|
             |DEFINTRF;integrate;FSbSU;5| (82 . =) (88 . |Zero|)
             (|Polynomial| 6) (92 . |denom|) (|Union| 25 '"failed")
             (97 . |checkForZero|))
          '#(|integrate| 106) 'NIL
          (CONS (|makeByteWordVec2| 1 'NIL)
                (CONS '#()
                      (CONS '#()
                            (|makeByteWordVec2| 51
                                '(1 8 7 0 9 1 8 10 0 11 1 10 12 0 13 1
                                  10 12 0 14 1 18 0 7 19 2 21 20 16 7
                                  22 5 26 23 18 24 12 12 25 27 2 28 0 0
                                  0 29 1 30 7 0 31 1 24 0 16 32 1 30 33
                                  0 34 1 33 35 0 36 2 38 12 37 35 39 1
                                  33 35 0 40 1 26 25 42 43 2 12 25 0 0
                                  46 0 12 0 47 1 16 48 0 49 5 26 50 48
                                  7 12 12 25 51 3 0 15 16 8 42 45 2 0
                                  15 16 8 17 3 0 15 16 30 42 44 2 0 15
                                  16 30 41)))))
          '|lookupComplete|)) 
