
(SDEFUN |STRANS;STransform1;DUTSR;1| ((|x| |Distribution| R) ($ UTSR))
        (SPROG
         ((|res| (|Sequence| R)) (|chi| (|Stream| R)) (|mom| (|Stream| R)))
         (SEQ
          (LETT |mom| (SPADCALL (SPADCALL |x| (QREFELT $ 12)) (QREFELT $ 14)))
          (EXIT
           (COND
            ((SPADCALL (SPADCALL |mom| (QREFELT $ 15)) (QREFELT $ 17))
             (|error| "mean is zero!"))
            ('T
             (SEQ
              (LETT |mom|
                    (SPADCALL (|spadConstant| $ 18) |mom| (QREFELT $ 20)))
              (LETT |chi| (SPADCALL |mom| (QREFELT $ 22)))
              (LETT |res|
                    (SPADCALL (SPADCALL |chi| (QREFELT $ 23))
                              (SPADCALL (SPADCALL |chi| (QREFELT $ 24))
                                        (QREFELT $ 23))
                              (QREFELT $ 25)))
              (EXIT
               (SPADCALL (SPADCALL |res| (QREFELT $ 14)) (QREFELT $ 26)))))))))) 

(SDEFUN |STRANS;STransform2;DUPSR;2| ((|x| |Distribution| R) ($ UPSR))
        (SPROG
         ((S2 (ULSR)) (|res2| (UTSR)) (|chi2| (|Stream| R))
          (|mom2| (|Stream| R)) (|mom| (|Stream| R)))
         (SEQ
          (LETT |mom| (SPADCALL (SPADCALL |x| (QREFELT $ 12)) (QREFELT $ 14)))
          (COND
           ((NULL (SPADCALL (SPADCALL |mom| (QREFELT $ 15)) (QREFELT $ 17)))
            (EXIT (|error| "mean is nonzero!"))))
          (LETT |mom2|
                (SPADCALL (|spadConstant| $ 18)
                          (SPADCALL (SPADCALL 1 2 (QREFELT $ 32))
                                    (SPADCALL |mom| (QREFELT $ 24))
                                    (QREFELT $ 33))
                          (QREFELT $ 20)))
          (LETT |chi2| (SPADCALL |mom2| (QREFELT $ 22)))
          (LETT |res2| (SPADCALL |chi2| (QREFELT $ 26)))
          (LETT S2
                (SPADCALL (SPADCALL -2 |res2| (QREFELT $ 34))
                          (SPADCALL 0 |res2| (QREFELT $ 34)) (QREFELT $ 35)))
          (EXIT (SPADCALL (SPADCALL 1 2 (QREFELT $ 32)) S2 (QREFELT $ 36)))))) 

(SDEFUN |STRANS;STransform;DUPSR;3| ((|x| |Distribution| R) ($ UPSR))
        (SPROG
         ((S (UTSR)) (|res| (|Sequence| R)) (|chi| #1=(|Stream| R))
          (|mom| (|Stream| R)) (S2 (ULSR)) (|res2| (UTSR)) (|chi2| #1#)
          (|mom2| (|Stream| R)))
         (SEQ
          (LETT |mom| (SPADCALL (SPADCALL |x| (QREFELT $ 12)) (QREFELT $ 14)))
          (EXIT
           (COND
            ((SPADCALL (SPADCALL |mom| (QREFELT $ 15)) (QREFELT $ 17))
             (SEQ
              (LETT |mom2|
                    (SPADCALL (|spadConstant| $ 18)
                              (SPADCALL (SPADCALL 1 2 (QREFELT $ 32))
                                        (SPADCALL |mom| (QREFELT $ 24))
                                        (QREFELT $ 33))
                              (QREFELT $ 20)))
              (LETT |chi2| (SPADCALL |mom2| (QREFELT $ 22)))
              (LETT |res2| (SPADCALL |chi2| (QREFELT $ 26)))
              (LETT S2
                    (SPADCALL (SPADCALL -2 |res2| (QREFELT $ 34))
                              (SPADCALL 0 |res2| (QREFELT $ 34))
                              (QREFELT $ 35)))
              (EXIT
               (SPADCALL (SPADCALL 1 2 (QREFELT $ 32)) S2 (QREFELT $ 36)))))
            ('T
             (SEQ
              (LETT |mom|
                    (SPADCALL (|spadConstant| $ 18) |mom| (QREFELT $ 20)))
              (LETT |chi| (SPADCALL |mom| (QREFELT $ 22)))
              (LETT |res|
                    (SPADCALL (SPADCALL |chi| (QREFELT $ 23))
                              (SPADCALL (SPADCALL |chi| (QREFELT $ 24))
                                        (QREFELT $ 23))
                              (QREFELT $ 25)))
              (LETT S
                    (SPADCALL (SPADCALL |res| (QREFELT $ 14)) (QREFELT $ 26)))
              (EXIT
               (SPADCALL (|spadConstant| $ 38) (SPADCALL 0 S (QREFELT $ 34))
                         (QREFELT $ 36)))))))))) 

(SDEFUN |STRANS;distributionBySTransform;UPSRD;4|
        ((S UPSR) ($ |Distribution| R))
        (SPROG
         ((|psi| #1=(|Stream| R)) (|psi2| #1#) (|chi2| (UTSR)) (|z1z| (UTSR))
          (S2 (ULSR)) (#2=#:G728 NIL) (|chi| (|Stream| R)) (S1 (UTSR)))
         (SEQ
          (EXIT
           (SEQ
            (COND
             ((SPADCALL (SPADCALL S (QREFELT $ 40)) (|spadConstant| $ 41)
                        (QREFELT $ 42))
              (SEQ
               (LETT S1 (SPADCALL (SPADCALL S (QREFELT $ 43)) (QREFELT $ 44)))
               (LETT |z1z|
                     (SPADCALL
                      (SPADCALL (|spadConstant| $ 18)
                                (SPADCALL
                                 (LIST (|spadConstant| $ 28)
                                       (SPADCALL (|spadConstant| $ 28)
                                                 (QREFELT $ 45)))
                                 (QREFELT $ 47))
                                (QREFELT $ 20))
                      (QREFELT $ 26)))
               (LETT |chi|
                     (SPADCALL (SPADCALL S1 |z1z| (QREFELT $ 48))
                               (QREFELT $ 49)))
               (LETT |psi| (SPADCALL |chi| (QREFELT $ 22)))
               (EXIT
                (PROGN
                 (LETT #2#
                       (SPADCALL
                        (SPADCALL (SPADCALL |psi| (QREFELT $ 24))
                                  (QREFELT $ 23))
                        (QREFELT $ 50)))
                 (GO #3=#:G727)))))
             ((NULL
               (SPADCALL (SPADCALL S (QREFELT $ 40))
                         (SPADCALL (SPADCALL 1 2 (QREFELT $ 32))
                                   (QREFELT $ 51))
                         (QREFELT $ 42)))
              (|error| "Not an S-transform")))
            (COND
             ((NULL
               (SPADCALL (SPADCALL S (QREFELT $ 52))
                         (SPADCALL 1 2 (QREFELT $ 32)) (QREFELT $ 42)))
              (|error| "Not an S-transform")))
            (LETT S2 (SPADCALL S (QREFELT $ 53)))
            (LETT |z1z|
                  (SPADCALL
                   (SPADCALL (|spadConstant| $ 18)
                             (SPADCALL
                              (LIST (|spadConstant| $ 18) (|spadConstant| $ 28)
                                    (|spadConstant| $ 18)
                                    (SPADCALL (|spadConstant| $ 28)
                                              (QREFELT $ 45)))
                              (QREFELT $ 47))
                             (QREFELT $ 20))
                   (QREFELT $ 26)))
            (LETT |chi2|
                  (SPADCALL
                   (SPADCALL S2 (SPADCALL 0 |z1z| (QREFELT $ 34))
                             (QREFELT $ 54))
                   (QREFELT $ 44)))
            (LETT |psi2|
                  (SPADCALL (SPADCALL |chi2| (QREFELT $ 49)) (QREFELT $ 22)))
            (LETT |psi|
                  (SPADCALL (SPADCALL 2 (QREFELT $ 55)) |psi2| (QREFELT $ 33)))
            (EXIT
             (SPADCALL
              (SPADCALL (SPADCALL |psi| (QREFELT $ 24)) (QREFELT $ 23))
              (QREFELT $ 50)))))
          #3# (EXIT #2#)))) 

(DECLAIM (NOTINLINE |STransformPackage;|)) 

(DEFUN |STransformPackage| (&REST #1=#:G729)
  (SPROG NIL
         (PROG (#2=#:G730)
           (RETURN
            (COND
             ((LETT #2#
                    (|lassocShiftWithFunction| (|devaluateList| #1#)
                                               (HGET |$ConstructorCache|
                                                     '|STransformPackage|)
                                               '|domainEqualList|))
              (|CDRwithIncrement| #2#))
             ('T
              (UNWIND-PROTECT
                  (PROG1 (APPLY (|function| |STransformPackage;|) #1#)
                    (LETT #2# T))
                (COND
                 ((NOT #2#)
                  (HREM |$ConstructorCache| '|STransformPackage|)))))))))) 

(DEFUN |STransformPackage;| (|#1| |#2| |#3| |#4|)
  (SPROG
   ((|pv$| NIL) ($ NIL) (|dv$| NIL) (DV$4 NIL) (DV$3 NIL) (DV$2 NIL)
    (DV$1 NIL))
   (PROGN
    (LETT DV$1 (|devaluate| |#1|))
    (LETT DV$2 (|devaluate| |#2|))
    (LETT DV$3 (|devaluate| |#3|))
    (LETT DV$4 (|devaluate| |#4|))
    (LETT |dv$| (LIST '|STransformPackage| DV$1 DV$2 DV$3 DV$4))
    (LETT $ (GETREFV 57))
    (QSETREFV $ 0 |dv$|)
    (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL)))
    (|haddProp| |$ConstructorCache| '|STransformPackage|
                (LIST DV$1 DV$2 DV$3 DV$4) (CONS 1 $))
    (|stuffDomainSlots| $)
    (QSETREFV $ 6 |#1|)
    (QSETREFV $ 7 |#2|)
    (QSETREFV $ 8 |#3|)
    (QSETREFV $ 9 |#4|)
    (SETF |pv$| (QREFELT $ 3))
    $))) 

(MAKEPROP '|STransformPackage| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|local| |#2|)
              (|local| |#3|) (|local| |#4|) (|Sequence| 6) (|Distribution| 6)
              (0 . |moments|) (|Stream| 6) (5 . |stream|) (10 . |first|)
              (|Boolean|) (15 . |zero?|) (20 . |Zero|) (24 . |Zero|)
              (28 . |cons|) (|StreamTaylorSeriesOperations| 6) (34 . |revert|)
              (39 . |sequence|) (44 . |rest|) (49 . +) (55 . |series|)
              |STRANS;STransform1;DUTSR;1| (60 . |One|) (64 . |One|)
              (|Integer|) (|Fraction| 30) (68 . /) (74 . |powern|)
              (80 . |laurent|) (86 . +) (92 . |puiseux|)
              |STRANS;STransform2;DUPSR;2| (98 . |One|)
              |STRANS;STransform;DUPSR;3| (102 . |order|) (107 . |Zero|)
              (111 . =) (117 . |retract|) (122 . |retract|) (127 . -)
              (|List| 6) (132 . |repeating|) (137 . *) (143 . |coefficients|)
              (148 . |distributionByMoments|) (153 . -) (158 . |rationalPower|)
              (163 . |laurentRep|) (168 . *) (174 . |coerce|)
              |STRANS;distributionBySTransform;UPSRD;4|)
           '#(|freeMultiplicativeConvolution| 179 |distributionBySTransform|
              185 |STransform2| 190 |STransform1| 195 |STransform| 200)
           'NIL
           (CONS (|makeByteWordVec2| 1 '(0))
                 (CONS '#(NIL)
                       (CONS
                        '#((|Join|
                            (|mkCategory|
                             (LIST
                              '((|STransform1| (|#2| (|Distribution| |#1|))) T)
                              '((|STransform2| (|#4| (|Distribution| |#1|))) T)
                              '((|STransform| (|#4| (|Distribution| |#1|))) T)
                              '((|distributionBySTransform|
                                 ((|Distribution| |#1|) |#4|))
                                T)
                              '((|freeMultiplicativeConvolution|
                                 ((|Distribution| |#1|) (|Distribution| |#1|)
                                  (|Distribution| |#1|)))
                                T))
                             (LIST) NIL NIL)))
                        (|makeByteWordVec2| 56
                                            '(1 11 10 0 12 1 10 13 0 14 1 13 6
                                              0 15 1 6 16 0 17 0 6 0 18 0 7 0
                                              19 2 13 0 6 0 20 1 21 13 13 22 1
                                              10 0 13 23 1 13 0 0 24 2 10 0 0 0
                                              25 1 7 0 13 26 0 6 0 28 0 7 0 29
                                              2 31 0 30 30 32 2 21 13 31 13 33
                                              2 8 0 30 7 34 2 8 0 0 0 35 2 9 0
                                              31 8 36 0 31 0 38 1 9 31 0 40 0
                                              31 0 41 2 31 16 0 0 42 1 9 8 0 43
                                              1 8 7 0 44 1 6 0 0 45 1 13 0 46
                                              47 2 7 0 0 0 48 1 7 13 0 49 1 11
                                              0 10 50 1 31 0 0 51 1 9 31 0 52 1
                                              9 8 0 53 2 8 0 0 0 54 1 31 0 30
                                              55 2 0 11 11 11 1 1 0 11 9 56 1 0
                                              9 11 37 1 0 7 11 27 1 0 9 11
                                              39)))))
           '|lookupComplete|)) 
