
(/VERSIONCHECK 2) 

(DEFUN |PADEPAC;pade;2Nni2UtsU;1| (|n| |m| |u| |v| $)
  (PROG (|ans| |xpt| |num| |den|)
    (RETURN
      (SEQ (LETT |ans| (SPADCALL |n| |m| |u| |v| (QREFELT $ 13))
                 . #0=(|PADEPAC;pade;2Nni2UtsU;1|))
           (EXIT (COND
                   ((OR (QEQCAR |ans| 1)
                        (SPADCALL (QREFELT $ 8) (|spadConstant| $ 14)
                            (QREFELT $ 16)))
                    |ans|)
                   ('T
                    (SEQ (LETT |num|
                               (SPADCALL (QCDR |ans|) (QREFELT $ 19)) . #0#)
                         (LETT |den|
                               (SPADCALL (QCDR |ans|) (QREFELT $ 20)) . #0#)
                         (LETT |xpt|
                               (SPADCALL
                                   (SPADCALL (|spadConstant| $ 21) 1
                                    (QREFELT $ 22))
                                   (SPADCALL (QREFELT $ 8) 0
                                    (QREFELT $ 22))
                                   (QREFELT $ 23)) . #0#)
                         (LETT |num|
                               (SPADCALL |num| |xpt| (QREFELT $ 24)) . #0#)
                         (LETT |den|
                               (SPADCALL |den| |xpt| (QREFELT $ 24)) . #0#)
                         (EXIT (CONS 0
                                     (SPADCALL |num| |den|
                                      (QREFELT $ 25)))))))))))) 

(DEFUN |PADEPAC;pade;2NniUtsU;2| (|n| |m| |u| $)
  (SPADCALL |n| |m| |u| (|spadConstant| $ 27) (QREFELT $ 26))) 

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

(DEFUN |PadeApproximantPackage;| (|#1| |#2| |#3|)
  (PROG (DV$1 DV$2 DV$3 |dv$| $ |pv$|)
    (RETURN
      (PROGN
        (LETT DV$1 (|devaluate| |#1|) . #0=(|PadeApproximantPackage|))
        (LETT DV$2 (|devaluate| |#2|) . #0#)
        (LETT DV$3 (|devaluate| |#3|) . #0#)
        (LETT |dv$|
              (LIST '|PadeApproximantPackage| DV$1 DV$2 DV$3) . #0#)
        (LETT $ (GETREFV 29) . #0#)
        (QSETREFV $ 0 |dv$|)
        (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #0#))
        (|haddProp| |$ConstructorCache| '|PadeApproximantPackage|
            (LIST DV$1 DV$2 DV$3) (CONS 1 $))
        (|stuffDomainSlots| $)
        (QSETREFV $ 6 |#1|)
        (QSETREFV $ 7 |#2|)
        (QSETREFV $ 8 |#3|)
        (QSETREFV $ 9
            (|PadeApproximants| |#1|
                (|UnivariateTaylorSeries| |#1| |#2| |#3|)
                (|UnivariatePolynomial| |#2| |#1|)))
        $)))) 

(MAKEPROP '|PadeApproximantPackage| '|infovec|
    (LIST '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|local| |#2|)
             (|local| |#3|) '|pa| (|Union| 18 '"failed")
             (|NonNegativeInteger|) (|UnivariateTaylorSeries| 6 7 8)
             (0 . |pade|) (8 . |Zero|) (|Boolean|) (12 . =)
             (|UnivariatePolynomial| 7 6) (|Fraction| 17)
             (18 . |numer|) (23 . |denom|) (28 . |One|)
             (32 . |monomial|) (38 . -) (44 . |elt|) (50 . /)
             |PADEPAC;pade;2Nni2UtsU;1| (56 . |One|)
             |PADEPAC;pade;2NniUtsU;2|)
          '#(|pade| 60) 'NIL
          (CONS (|makeByteWordVec2| 1 'NIL)
                (CONS '#()
                      (CONS '#()
                            (|makeByteWordVec2| 28
                                '(4 9 10 11 11 12 12 13 0 6 0 14 2 6 15
                                  0 0 16 1 18 17 0 19 1 18 17 0 20 0 6
                                  0 21 2 17 0 6 11 22 2 17 0 0 0 23 2
                                  17 0 0 0 24 2 18 0 17 17 25 0 12 0 27
                                  3 0 10 11 11 12 28 4 0 10 11 11 12 12
                                  26)))))
          '|lookupComplete|)) 
