
(/VERSIONCHECK 2) 

(DEFUN |FSERIES;One;$;1| ($)
  (LIST
   (CONS (SPADCALL (|spadConstant| $ 12) (QREFELT $ 14))
         (|spadConstant| $ 15)))) 

(DEFUN |FSERIES;coerce;Fc$;2| (|e| $)
  (PROG (#1=#:G678)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (COND
         ((SPADCALL |e| (QREFELT $ 18))
          (COND
           ((SPADCALL (SPADCALL |e| (QREFELT $ 19)) (QREFELT $ 20))
            (EXIT (|spadConstant| $ 10))))))
        (COND
         ((SPADCALL (SPADCALL |e| (QREFELT $ 19)) (|spadConstant| $ 12)
                    (QREFELT $ 21))
          (COND
           ((NULL (SPADCALL |e| (QREFELT $ 18)))
            (LETT |e|
                  (SPADCALL
                   (SPADCALL (SPADCALL |e| (QREFELT $ 19)) (QREFELT $ 22))
                   (QREFELT $ 14))
                  . #2=(|FSERIES;coerce;Fc$;2|)))
           ('T
            (PROGN
             (LETT #1#
                   (LIST
                    (CONS
                     (SPADCALL
                      (SPADCALL (SPADCALL |e| (QREFELT $ 19)) (QREFELT $ 22))
                      (QREFELT $ 23))
                     (SPADCALL (|spadConstant| $ 15) (QREFELT $ 24))))
                   . #2#)
             (GO #1#))))))
        (EXIT (LIST (CONS |e| (|spadConstant| $ 15))))))
      #1# (EXIT #1#))))) 

(DEFUN |FSERIES;multiply| (|t1| |t2| $)
  (PROG (|diff| |sum| |s2| |s1| |r|)
    (RETURN
     (SEQ
      (LETT |r|
            (SPADCALL (SPADCALL (QCDR |t1|) (QCDR |t2|) (QREFELT $ 26))
                      (SPADCALL 1 2 (QREFELT $ 29)) (QREFELT $ 30))
            . #1=(|FSERIES;multiply|))
      (LETT |s1| (SPADCALL (QCAR |t1|) (QREFELT $ 19)) . #1#)
      (LETT |s2| (SPADCALL (QCAR |t2|) (QREFELT $ 19)) . #1#)
      (LETT |sum| (SPADCALL |s1| |s2| (QREFELT $ 31)) . #1#)
      (LETT |diff| (SPADCALL |s1| |s2| (QREFELT $ 32)) . #1#)
      (EXIT
       (COND
        ((SPADCALL (QCAR |t1|) (QREFELT $ 18))
         (COND
          ((SPADCALL (QCAR |t2|) (QREFELT $ 18))
           (SPADCALL (SPADCALL |diff| |r| (QREFELT $ 33))
                     (SPADCALL |sum| (SPADCALL |r| (QREFELT $ 24))
                               (QREFELT $ 33))
                     (QREFELT $ 34)))
          (#2='T
           (SPADCALL (SPADCALL |sum| |r| (QREFELT $ 35))
                     (SPADCALL |diff| |r| (QREFELT $ 35)) (QREFELT $ 34)))))
        ((SPADCALL (QCAR |t2|) (QREFELT $ 18))
         (SPADCALL (SPADCALL |sum| |r| (QREFELT $ 35))
                   (SPADCALL |diff| |r| (QREFELT $ 35)) (QREFELT $ 34)))
        (#2#
         (SPADCALL (SPADCALL |diff| |r| (QREFELT $ 33))
                   (SPADCALL |sum| |r| (QREFELT $ 33)) (QREFELT $ 34))))))))) 

(DEFUN |FSERIES;*;3$;4| (|x1| |x2| $)
  (PROG (#1=#:G684 #2=#:G683 #3=#:G685 #4=#:G687 #5=#:G686 #6=#:G688 #7=#:G691
         |t2| #8=#:G690 |t1|)
    (RETURN
     (SEQ
      (COND ((OR (NULL |x1|) (NULL |x2|)) (|spadConstant| $ 10))
            ('T
             (PROGN
              (LETT #1# NIL . #9=(|FSERIES;*;3$;4|))
              (SEQ (LETT |t1| NIL . #9#) (LETT #8# |x1| . #9#) G190
                   (COND
                    ((OR (ATOM #8#) (PROGN (LETT |t1| (CAR #8#) . #9#) NIL))
                     #10=(GO G191)))
                   (SEQ
                    (EXIT
                     (PROGN
                      (LETT #3#
                            (PROGN
                             (LETT #4# NIL . #9#)
                             (SEQ (LETT |t2| NIL . #9#) (LETT #7# |x2| . #9#)
                                  G190
                                  (COND
                                   ((OR (ATOM #7#)
                                        (PROGN
                                         (LETT |t2| (CAR #7#) . #9#)
                                         NIL))
                                    #10#))
                                  (SEQ
                                   (EXIT
                                    (PROGN
                                     (LETT #6# (|FSERIES;multiply| |t1| |t2| $)
                                           . #9#)
                                     (COND
                                      (#4#
                                       (LETT #5#
                                             (SPADCALL #5# #6# (QREFELT $ 34))
                                             . #9#))
                                      ('T
                                       (PROGN
                                        (LETT #5# #6# . #9#)
                                        (LETT #4# 'T . #9#)))))))
                                  (LETT #7# (CDR #7#) . #9#) #11=(GO G190) G191
                                  (EXIT NIL))
                             (COND (#4# #5#) ('T (|spadConstant| $ 10))))
                            . #9#)
                      (COND
                       (#1# (LETT #2# (SPADCALL #2# #3# (QREFELT $ 34)) . #9#))
                       ('T
                        (PROGN (LETT #2# #3# . #9#) (LETT #1# 'T . #9#)))))))
                   (LETT #8# (CDR #8#) . #9#) #11# G191 (EXIT NIL))
              (COND (#1# #2#) ('T (|spadConstant| $ 10)))))))))) 

(DEFUN |FSERIES;makeCos;ER$;5| (|a| |r| $)
  (COND
   ((SPADCALL |a| (|spadConstant| $ 12) (QREFELT $ 21))
    (LIST (CONS (SPADCALL (SPADCALL |a| (QREFELT $ 22)) (QREFELT $ 14)) |r|)))
   ('T (LIST (CONS (SPADCALL |a| (QREFELT $ 14)) |r|))))) 

(DEFUN |FSERIES;makeSin;ER$;6| (|a| |r| $)
  (COND ((SPADCALL |a| (QREFELT $ 20)) NIL)
        ((SPADCALL |a| (|spadConstant| $ 12) (QREFELT $ 21))
         (LIST
          (CONS (SPADCALL (SPADCALL |a| (QREFELT $ 22)) (QREFELT $ 23))
                (SPADCALL |r| (QREFELT $ 24)))))
        ('T (LIST (CONS (SPADCALL |a| (QREFELT $ 23)) |r|))))) 

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

(DEFUN |FourierSeries;| (|#1| |#2|)
  (PROG (|pv$| $ |dv$| DV$2 DV$1)
    (RETURN
     (PROGN
      (LETT DV$1 (|devaluate| |#1|) . #1=(|FourierSeries|))
      (LETT DV$2 (|devaluate| |#2|) . #1#)
      (LETT |dv$| (LIST '|FourierSeries| DV$1 DV$2) . #1#)
      (LETT $ (GETREFV 43) . #1#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3
                (LETT |pv$|
                      (|buildPredVector| 0 0
                                         (LIST
                                          (AND
                                           (|HasCategory| |#1| '(|Canonical|))
                                           (|HasCategory| |#2|
                                                          '(|Canonical|)))))
                      . #1#))
      (|haddProp| |$ConstructorCache| '|FourierSeries| (LIST DV$1 DV$2)
                  (CONS 1 $))
      (|stuffDomainSlots| $)
      (QSETREFV $ 6 |#1|)
      (QSETREFV $ 7 |#2|)
      (QSETREFV $ 8
                (|Record| (|:| |k| (|FourierComponent| |#2|)) (|:| |c| |#1|)))
      (QSETREFV $ 9 (|List| (QREFELT $ 8)))
      $)))) 

(MAKEPROP '|FourierSeries| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL (|FreeModule| 6 13) (|local| |#1|)
              (|local| |#2|) '|Term| '|Rep| (0 . |Zero|) (4 . |Zero|)
              (8 . |Zero|) (|FourierComponent| 7) (12 . |cos|) (17 . |One|)
              (CONS IDENTITY
                    (FUNCALL (|dispatchFunction| |FSERIES;One;$;1|) $))
              (|Boolean|) (21 . |sin?|) (26 . |argument|) (31 . |zero?|)
              (36 . <) (42 . -) (47 . |sin|) (52 . -) |FSERIES;coerce;Fc$;2|
              (57 . *) (|Integer|) (|Fraction| 27) (63 . /) (69 . *) (75 . +)
              (81 . -) |FSERIES;makeCos;ER$;5| (87 . +) |FSERIES;makeSin;ER$;6|
              |FSERIES;*;3$;4| (|NonNegativeInteger|) (|Union| $ '"failed")
              (|PositiveInteger|) (|String|) (|OutputForm|) (|SingleInteger|))
           '#(~= 93 |zero?| 99 |subtractIfCan| 104 |sample| 110 |recip| 114
              |one?| 119 |makeSin| 124 |makeCos| 130 |latex| 136 |hash| 141
              |coerce| 146 |characteristic| 166 ^ 170 |Zero| 182 |One| 186 =
              190 - 196 + 207 * 213)
           'NIL
           (CONS
            (|makeByteWordVec2| 1 '(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1))
            (CONS
             '#(|Algebra&| |Module&| |Ring&| NIL NIL NIL NIL NIL
                |AbelianGroup&| NIL NIL |AbelianMonoid&| |Monoid&| NIL
                |SemiGroup&| |AbelianSemiGroup&| |SetCategory&| NIL
                |BasicType&| NIL NIL)
             (CONS
              '#((|Algebra| 6) (|Module| 6) (|Ring|) (|BiModule| 6 6) (|Rng|)
                 (|RightModule| 6) (|LeftModule| 6) (|LeftModule| $$)
                 (|AbelianGroup|) (|CancellationAbelianMonoid|) (|SemiRing|)
                 (|AbelianMonoid|) (|Monoid|) (|SemiRng|) (|SemiGroup|)
                 (|AbelianSemiGroup|) (|SetCategory|) (|unitsKnown|)
                 (|BasicType|) (|CoercibleTo| 41) (|Canonical|))
              (|makeByteWordVec2| 42
                                  '(0 0 0 10 0 6 0 11 0 7 0 12 1 13 0 7 14 0 6
                                    0 15 1 13 17 0 18 1 13 7 0 19 1 7 17 0 20 2
                                    7 17 0 0 21 1 7 0 0 22 1 13 0 7 23 1 6 0 0
                                    24 2 6 0 0 0 26 2 28 0 27 27 29 2 6 0 0 28
                                    30 2 7 0 0 0 31 2 7 0 0 0 32 2 0 0 0 0 34 2
                                    0 17 0 0 1 1 0 17 0 1 2 0 38 0 0 1 0 0 0 1
                                    1 0 38 0 1 1 0 17 0 1 2 0 0 7 6 35 2 0 0 7
                                    6 33 1 0 40 0 1 1 0 42 0 1 1 0 0 13 25 1 0
                                    0 6 1 1 0 0 27 1 1 0 41 0 1 0 0 37 1 2 0 0
                                    0 37 1 2 0 0 0 39 1 0 0 0 10 0 0 0 16 2 0
                                    17 0 0 1 1 0 0 0 1 2 0 0 0 0 1 2 0 0 0 0 34
                                    2 0 0 6 0 1 2 0 0 0 6 1 2 0 0 0 0 36 2 0 0
                                    27 0 1 2 0 0 37 0 1 2 0 0 39 0 1)))))
           '|lookupComplete|)) 
