
(/VERSIONCHECK 2) 

(DEFUN |TANEXP;m1toN| (|n| $) (COND ((ODDP |n|) -1) ('T 1))) 

(DEFUN |TANEXP;tanAn;RPiSup;2| (|a| |n| $)
  (PROG (|q|)
    (RETURN
     (SPADCALL
      (SPADCALL |a|
                (SPADCALL
                 (LETT |q| (|TANEXP;tanPIa| |n| $) |TANEXP;tanAn;RPiSup;2|)
                 (QREFELT $ 10))
                (QREFELT $ 11))
      (SPADCALL |q| (QREFELT $ 12)) (QREFELT $ 13))))) 

(DEFUN |TANEXP;tanNa;RIR;3| (|a| |n| $)
  (PROG (|t| #1=#:G670)
    (RETURN
     (COND ((ZEROP |n|) (|spadConstant| $ 16))
           ((MINUSP |n|)
            (SPADCALL (SPADCALL |a| (- |n|) (QREFELT $ 18)) (QREFELT $ 19)))
           ('T
            (SPADCALL
             (SPADCALL
              (SPADCALL
               (LETT |t|
                     (|TANEXP;tanPIa|
                      (PROG1 (LETT #1# |n| . #2=(|TANEXP;tanNa;RIR;3|))
                        (|check-subtype| (> #1# 0) '(|PositiveInteger|) #1#))
                      $)
                     . #2#)
               (QREFELT $ 12))
              |a| (QREFELT $ 20))
             (SPADCALL (SPADCALL |t| (QREFELT $ 10)) |a| (QREFELT $ 20))
             (QREFELT $ 21))))))) 

(DEFUN |TANEXP;tanSum;LR;4| (|l| $)
  (PROG (#1=#:G678 #2=#:G677 #3=#:G679 #4=#:G683 |i| #5=#:G675 #6=#:G674
         #7=#:G676 #8=#:G682 |m| |v|)
    (RETURN
     (SEQ
      (LETT |m|
            (SPADCALL
             (LETT |v| (SPADCALL |l| (QREFELT $ 25))
                   . #9=(|TANEXP;tanSum;LR;4|))
             (QREFELT $ 26))
            . #9#)
      (EXIT
       (SPADCALL
        (PROGN
         (LETT #5# NIL . #9#)
         (SEQ (LETT |i| 1 . #9#) (LETT #8# (QUOTIENT2 (QVSIZE |v|) 2) . #9#)
              G190 (COND ((QSGREATERP |i| #8#) #10=(GO G191)))
              (SEQ
               (EXIT
                (PROGN
                 (LETT #7#
                       (SPADCALL (|TANEXP;m1toN| (+ |i| 1) $)
                                 (SPADCALL |v|
                                           (+
                                            (- (SPADCALL 2 |i| (QREFELT $ 28))
                                               1)
                                            |m|)
                                           (QREFELT $ 29))
                                 (QREFELT $ 30))
                       . #9#)
                 (COND (#5# (LETT #6# (SPADCALL #6# #7# (QREFELT $ 31)) . #9#))
                       ('T
                        (PROGN (LETT #6# #7# . #9#) (LETT #5# 'T . #9#)))))))
              (LETT |i| (QSADD1 |i|) . #9#) #11=(GO G190) G191 (EXIT NIL))
         (COND (#5# #6#) (#12='T (|spadConstant| $ 16))))
        (PROGN
         (LETT #1# NIL . #9#)
         (SEQ (LETT |i| 0 . #9#)
              (LETT #4# (QUOTIENT2 (- (QVSIZE |v|) 1) 2) . #9#) G190
              (COND ((QSGREATERP |i| #4#) #10#))
              (SEQ
               (EXIT
                (PROGN
                 (LETT #3#
                       (SPADCALL (|TANEXP;m1toN| |i| $)
                                 (SPADCALL |v|
                                           (+ (SPADCALL 2 |i| (QREFELT $ 28))
                                              |m|)
                                           (QREFELT $ 29))
                                 (QREFELT $ 30))
                       . #9#)
                 (COND (#1# (LETT #2# (SPADCALL #2# #3# (QREFELT $ 31)) . #9#))
                       ('T
                        (PROGN (LETT #2# #3# . #9#) (LETT #1# 'T . #9#)))))))
              (LETT |i| (QSADD1 |i|) . #9#) #11# G191 (EXIT NIL))
         (COND (#1# #2#) (#12# (|spadConstant| $ 16))))
        (QREFELT $ 21))))))) 

(DEFUN |TANEXP;tanPIa| (|n| $)
  (PROG (#1=#:G688 #2=#:G687 #3=#:G689 #4=#:G693 |i| #5=#:G685 #6=#:G684
         #7=#:G686 #8=#:G692 |m| |v|)
    (RETURN
     (SEQ
      (LETT |m|
            (SPADCALL
             (LETT |v|
                   (SPADCALL (SPADCALL (|spadConstant| $ 7) 1 (QREFELT $ 34))
                             |n| (QREFELT $ 37))
                   . #9=(|TANEXP;tanPIa|))
             (QREFELT $ 38))
            . #9#)
      (EXIT
       (SPADCALL
        (PROGN
         (LETT #5# NIL . #9#)
         (SEQ (LETT |i| 1 . #9#) (LETT #8# (QUOTIENT2 (QVSIZE |v|) 2) . #9#)
              G190 (COND ((QSGREATERP |i| #8#) #10=(GO G191)))
              (SEQ
               (EXIT
                (PROGN
                 (LETT #7#
                       (SPADCALL (|TANEXP;m1toN| (+ |i| 1) $)
                                 (SPADCALL |v|
                                           (+
                                            (- (SPADCALL 2 |i| (QREFELT $ 28))
                                               1)
                                            |m|)
                                           (QREFELT $ 39))
                                 (QREFELT $ 40))
                       . #9#)
                 (COND (#5# (LETT #6# (SPADCALL #6# #7# (QREFELT $ 41)) . #9#))
                       ('T
                        (PROGN (LETT #6# #7# . #9#) (LETT #5# 'T . #9#)))))))
              (LETT |i| (QSADD1 |i|) . #9#) #11=(GO G190) G191 (EXIT NIL))
         (COND (#5# #6#) (#12='T (|spadConstant| $ 42))))
        (PROGN
         (LETT #1# NIL . #9#)
         (SEQ (LETT |i| 0 . #9#)
              (LETT #4# (QUOTIENT2 (- (QVSIZE |v|) 1) 2) . #9#) G190
              (COND ((QSGREATERP |i| #4#) #10#))
              (SEQ
               (EXIT
                (PROGN
                 (LETT #3#
                       (SPADCALL (|TANEXP;m1toN| |i| $)
                                 (SPADCALL |v|
                                           (+ (SPADCALL 2 |i| (QREFELT $ 28))
                                              |m|)
                                           (QREFELT $ 39))
                                 (QREFELT $ 40))
                       . #9#)
                 (COND (#1# (LETT #2# (SPADCALL #2# #3# (QREFELT $ 41)) . #9#))
                       ('T
                        (PROGN (LETT #2# #3# . #9#) (LETT #1# 'T . #9#)))))))
              (LETT |i| (QSADD1 |i|) . #9#) #11# G191 (EXIT NIL))
         (COND (#1# #2#) (#12# (|spadConstant| $ 42))))
        (QREFELT $ 43))))))) 

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

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

(MAKEPROP '|TangentExpansions| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (0 . |One|)
              (|SparseUnivariatePolynomial| 6) (|Fraction| 8) (4 . |denom|)
              (9 . *) (15 . |numer|) (20 . -) (|PositiveInteger|)
              |TANEXP;tanAn;RPiSup;2| (26 . |Zero|) (|Integer|)
              |TANEXP;tanNa;RIR;3| (30 . -) (35 . |elt|) (41 . /) (|Vector| 6)
              (|List| 6) (|SymmetricFunctions| 6) (47 . |symFunc|)
              (52 . |minIndex|) (|NonNegativeInteger|) (57 . *) (63 . |elt|)
              (69 . *) (75 . +) |TANEXP;tanSum;LR;4| (81 . |One|)
              (85 . |monomial|) (|Vector| 8) (|SymmetricFunctions| 8)
              (91 . |symFunc|) (97 . |minIndex|) (102 . |elt|) (108 . *)
              (114 . +) (120 . |Zero|) (124 . /))
           '#(|tanSum| 130 |tanNa| 135 |tanAn| 141) 'NIL
           (CONS (|makeByteWordVec2| 1 'NIL)
                 (CONS '#()
                       (CONS '#()
                             (|makeByteWordVec2| 43
                                                 '(0 6 0 7 1 9 8 0 10 2 8 0 6 0
                                                   11 1 9 8 0 12 2 8 0 0 0 13 0
                                                   6 0 16 1 6 0 0 19 2 8 6 0 6
                                                   20 2 6 0 0 0 21 1 24 22 23
                                                   25 1 22 17 0 26 2 27 0 14 0
                                                   28 2 22 6 0 17 29 2 6 0 17 0
                                                   30 2 6 0 0 0 31 0 9 0 33 2 8
                                                   0 6 27 34 2 36 35 8 14 37 1
                                                   35 17 0 38 2 35 8 0 17 39 2
                                                   8 0 17 0 40 2 8 0 0 0 41 0 8
                                                   0 42 2 9 0 8 8 43 1 0 6 23
                                                   32 2 0 6 6 17 18 2 0 8 6 14
                                                   15)))))
           '|lookupComplete|)) 
