
(/VERSIONCHECK 2) 

(DEFUN |SMPEXPR;log;2$;1| (|p| $)
  (SEQ
   (COND
    ((SPADCALL |p| (QREFELT $ 8))
     (SPADCALL (SPADCALL (SPADCALL |p| (QREFELT $ 9)) (QREFELT $ 10))
               (QREFELT $ 11)))
    ('T
     (SEQ
      (SPADCALL
       (SPADCALL "log p for p= " (SPADCALL |p| (QREFELT $ 13)) (QREFELT $ 14))
       (QREFELT $ 17))
      (EXIT
       (|error|
        "SUPTRAFUN: log only defined for elements of the coefficient ring"))))))) 

(DEFUN |SMPEXPR;exp;2$;2| (|p| $)
  (SEQ
   (COND
    ((SPADCALL |p| (QREFELT $ 8))
     (SPADCALL (SPADCALL (SPADCALL |p| (QREFELT $ 9)) (QREFELT $ 19))
               (QREFELT $ 11)))
    ('T
     (SEQ
      (SPADCALL
       (SPADCALL "exp p for p= " (SPADCALL |p| (QREFELT $ 13)) (QREFELT $ 14))
       (QREFELT $ 17))
      (EXIT
       (|error|
        "SUPTRAFUN: exp only defined for elements of the coefficient ring"))))))) 

(DEFUN |SMPEXPR;sin;2$;3| (|p| $)
  (SEQ
   (COND
    ((SPADCALL |p| (QREFELT $ 8))
     (SPADCALL (SPADCALL (SPADCALL |p| (QREFELT $ 9)) (QREFELT $ 21))
               (QREFELT $ 11)))
    ('T
     (SEQ
      (SPADCALL
       (SPADCALL "sin p for p= " (SPADCALL |p| (QREFELT $ 13)) (QREFELT $ 14))
       (QREFELT $ 17))
      (EXIT
       (|error|
        "SUPTRAFUN: sin only defined for elements of the coefficient ring"))))))) 

(DEFUN |SMPEXPR;asin;2$;4| (|p| $)
  (SEQ
   (COND
    ((SPADCALL |p| (QREFELT $ 8))
     (SPADCALL (SPADCALL (SPADCALL |p| (QREFELT $ 9)) (QREFELT $ 23))
               (QREFELT $ 11)))
    ('T
     (SEQ
      (SPADCALL
       (SPADCALL "asin p for p= " (SPADCALL |p| (QREFELT $ 13)) (QREFELT $ 14))
       (QREFELT $ 17))
      (EXIT
       (|error|
        "SUPTRAFUN: asin only defined for elements of the coefficient ring"))))))) 

(DEFUN |SMPEXPR;cos;2$;5| (|p| $)
  (SEQ
   (COND
    ((SPADCALL |p| (QREFELT $ 8))
     (SPADCALL (SPADCALL (SPADCALL |p| (QREFELT $ 9)) (QREFELT $ 25))
               (QREFELT $ 11)))
    ('T
     (SEQ
      (SPADCALL
       (SPADCALL "cos p for p= " (SPADCALL |p| (QREFELT $ 13)) (QREFELT $ 14))
       (QREFELT $ 17))
      (EXIT
       (|error|
        "SUPTRAFUN: cos only defined for elements of the coefficient ring"))))))) 

(DEFUN |SMPEXPR;acos;2$;6| (|p| $)
  (SEQ
   (COND
    ((SPADCALL |p| (QREFELT $ 8))
     (SPADCALL (SPADCALL (SPADCALL |p| (QREFELT $ 9)) (QREFELT $ 27))
               (QREFELT $ 11)))
    ('T
     (SEQ
      (SPADCALL
       (SPADCALL "acos p for p= " (SPADCALL |p| (QREFELT $ 13)) (QREFELT $ 14))
       (QREFELT $ 17))
      (EXIT
       (|error|
        "SUPTRAFUN: acos only defined for elements of the coefficient ring"))))))) 

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

(DEFUN |SparseMultivariatePolynomialExpressions;| (|#1|)
  (PROG (|pv$| #1=#:G1881 $ |dv$| DV$1)
    (RETURN
     (PROGN
      (LETT DV$1 (|devaluate| |#1|)
            . #2=(|SparseMultivariatePolynomialExpressions|))
      (LETT |dv$| (LIST '|SparseMultivariatePolynomialExpressions| DV$1) . #2#)
      (LETT $ (GETREFV 71) . #2#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3
                (LETT |pv$|
                      (|buildPredVector| 0 0
                                         (LIST
                                          (|HasCategory| |#1|
                                                         '(|PolynomialFactorizationExplicit|))
                                          (|HasCategory| |#1|
                                                         '(|CommutativeRing|))
                                          (|HasCategory| |#1|
                                                         '(|IntegralDomain|))
                                          (OR
                                           (|HasCategory| |#1|
                                                          '(|CommutativeRing|))
                                           (|HasCategory| |#1|
                                                          '(|IntegralDomain|)))
                                          (|HasCategory| |#1|
                                                         '(|canonicalUnitNormal|))
                                          (AND
                                           (|HasCategory| |#1|
                                                          '(|PatternMatchable|
                                                            (|Float|)))
                                           (|HasCategory|
                                            (|NonNegativeInteger|)
                                            '(|PatternMatchable| (|Float|))))
                                          (AND
                                           (|HasCategory| |#1|
                                                          '(|PatternMatchable|
                                                            (|Integer|)))
                                           (|HasCategory|
                                            (|NonNegativeInteger|)
                                            '(|PatternMatchable| (|Integer|))))
                                          (AND
                                           (|HasCategory| |#1|
                                                          '(|ConvertibleTo|
                                                            (|Pattern|
                                                             (|Float|))))
                                           (|HasCategory|
                                            (|NonNegativeInteger|)
                                            '(|ConvertibleTo|
                                              (|Pattern| (|Float|)))))
                                          (AND
                                           (|HasCategory| |#1|
                                                          '(|ConvertibleTo|
                                                            (|Pattern|
                                                             (|Integer|))))
                                           (|HasCategory|
                                            (|NonNegativeInteger|)
                                            '(|ConvertibleTo|
                                              (|Pattern| (|Integer|)))))
                                          (AND
                                           (|HasCategory| |#1|
                                                          '(|ConvertibleTo|
                                                            (|InputForm|)))
                                           (|HasCategory|
                                            (|NonNegativeInteger|)
                                            '(|ConvertibleTo| (|InputForm|))))
                                          (|HasCategory| |#1| '(|Comparable|))
                                          (|HasCategory| |#1|
                                                         '(|LinearlyExplicitRingOver|
                                                           (|Integer|)))
                                          (|HasCategory| |#1|
                                                         '(|Algebra|
                                                           (|Fraction|
                                                            (|Integer|))))
                                          (|HasCategory| |#1|
                                                         '(|CharacteristicNonZero|))
                                          (|HasCategory| |#1|
                                                         '(|CharacteristicZero|))
                                          (|HasCategory| |#1|
                                                         '(|RetractableTo|
                                                           (|Integer|)))
                                          (|HasCategory| |#1|
                                                         '(|RetractableTo|
                                                           (|Fraction|
                                                            (|Integer|))))
                                          (|HasCategory| |#1|
                                                         '(|TranscendentalFunctionCategory|))
                                          (|HasCategory| |#1| '(|Field|))
                                          (OR
                                           (|HasCategory| |#1|
                                                          '(|Algebra|
                                                            (|Fraction|
                                                             (|Integer|))))
                                           (|HasCategory| |#1|
                                                          '(|RetractableTo|
                                                            (|Fraction|
                                                             (|Integer|)))))
                                          (LETT #1#
                                                (|HasCategory| |#1|
                                                               '(|GcdDomain|))
                                                . #2#)
                                          (OR
                                           (|HasCategory| |#1|
                                                          '(|CommutativeRing|))
                                           #1#
                                           (|HasCategory| |#1|
                                                          '(|IntegralDomain|))
                                           (|HasCategory| |#1|
                                                          '(|PolynomialFactorizationExplicit|)))
                                          (OR #1#
                                              (|HasCategory| |#1|
                                                             '(|IntegralDomain|))
                                              (|HasCategory| |#1|
                                                             '(|PolynomialFactorizationExplicit|)))
                                          (OR #1#
                                              (|HasCategory| |#1|
                                                             '(|PolynomialFactorizationExplicit|)))))
                      . #2#))
      (|haddProp| |$ConstructorCache|
                  '|SparseMultivariatePolynomialExpressions| (LIST DV$1)
                  (CONS 1 $))
      (|stuffDomainSlots| $)
      (QSETREFV $ 6 |#1|)
      (AND (|HasCategory| |#1| '(|PolynomialFactorizationExplicit|))
           (|HasCategory| $ '(|CharacteristicNonZero|))
           (|augmentPredVector| $ 16777216))
      (AND
       (OR (|HasCategory| |#1| '(|CharacteristicNonZero|))
           (AND (|HasCategory| |#1| '(|PolynomialFactorizationExplicit|))
                (|HasCategory| $ '(|CharacteristicNonZero|))))
       (|augmentPredVector| $ 33554432))
      (COND
       ((|testBitVector| |pv$| 18)
        (PROGN
         (QSETREFV $ 18 (CONS (|dispatchFunction| |SMPEXPR;log;2$;1|) $))
         (QSETREFV $ 20 (CONS (|dispatchFunction| |SMPEXPR;exp;2$;2|) $))
         (QSETREFV $ 22 (CONS (|dispatchFunction| |SMPEXPR;sin;2$;3|) $))
         (QSETREFV $ 24 (CONS (|dispatchFunction| |SMPEXPR;asin;2$;4|) $))
         (QSETREFV $ 26 (CONS (|dispatchFunction| |SMPEXPR;cos;2$;5|) $))
         (QSETREFV $ 28 (CONS (|dispatchFunction| |SMPEXPR;acos;2$;6|) $)))))
      $)))) 

(MAKEPROP '|SparseMultivariatePolynomialExpressions| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL (|SparseMultivariatePolynomial| 6 38)
              (|local| |#1|) (|Boolean|) (0 . |ground?|) (5 . |ground|)
              (10 . |log|) (15 . |coerce|) (|OutputForm|) (20 . |coerce|)
              (25 . |hconcat|) (|Void|) (|OutputPackage|) (31 . |output|)
              (36 . |log|) (41 . |exp|) (46 . |exp|) (51 . |sin|) (56 . |sin|)
              (61 . |asin|) (66 . |asin|) (71 . |cos|) (76 . |cos|)
              (81 . |acos|) (86 . |acos|) (|Union| 45 '#1="failed")
              (|Matrix| $) (|InputForm|) (|Pattern| (|Float|)) (|Pattern| 50)
              (|PatternMatchResult| (|Float|) $) (|PatternMatchResult| 50 $)
              (|Union| $ '#1#) (|Fraction| 50) (|NonNegativeInteger|)
              (|List| $) (|SparseUnivariatePolynomial| $) (|Factored| $)
              (|Record| (|:| |unit| $) (|:| |canonical| $) (|:| |associate| $))
              (|Matrix| 50) (|Record| (|:| |mat| 43) (|:| |vec| (|Vector| 50)))
              (|Vector| $) (|Factored| 40) (|Union| 48 '#1#) (|List| 40)
              (|Union| 37 '#2="failed") (|Integer|) (|Union| 50 '#2#)
              (|List| 38) (|Union| 39 '#3="failed")
              (|Record| (|:| |var| 38) (|:| |exponent| 38)) (|Union| 54 '#3#)
              (|SparseUnivariatePolynomial| 6)
              (|Record| (|:| |quotient| $) (|:| |remainder| $))
              (|Union| 38 '#3#)
              (|Record| (|:| |mat| 60) (|:| |vec| (|Vector| 6))) (|Matrix| 6)
              (|List| 6) (|Equation| $) (|List| 62) (|IndexedExponents| 38)
              (|Mapping| 6 6) (|Union| 6 '#2#) (|Mapping| 64 64)
              (|PositiveInteger|) (|SingleInteger|) (|String|))
           '#(|sin| 91 |log| 96 |ground?| 101 |ground| 106 |exp| 111 |cos| 116
              |coerce| 121 |asin| 131 |acos| 136)
           'NIL
           (CONS
            (|makeByteWordVec2| 24
                                '(0 1 0 1 0 24 23 0 3 13 2 0 0 22 3 3 12 13 14
                                  15 2 0 0 4 13 0 0 0 0 2 13 13 0 0 0 0 0 0 0 0
                                  6 7 11 0 0 0 18 0 0 0 0 0 0 0 0 2 3 5 8 9 10
                                  16 17 18 18 18 18 18))
            (CONS
             '#(|PolynomialCategory&| |PolynomialFactorizationExplicit&|
                |FiniteAbelianMonoidRing&| |UniqueFactorizationDomain&|
                |AbelianMonoidRing&| |GcdDomain&| |IntegralDomain&|
                |FullyLinearlyExplicitRingOver&| |Algebra&| |Algebra&|
                |Algebra&| |PartialDifferentialRing&| NIL NIL |Module&| NIL NIL
                |Module&| NIL NIL |Module&| NIL |Ring&| NIL NIL NIL NIL NIL NIL
                NIL NIL NIL |AbelianGroup&| NIL NIL |AbelianMonoid&| |Monoid&|
                NIL |SemiGroup&| |AbelianSemiGroup&| NIL NIL NIL |Evalable&|
                |FullyRetractableTo&| |SetCategory&|
                |TranscendentalFunctionCategory&| |RetractableTo&|
                |InnerEvalable&| |InnerEvalable&| |InnerEvalable&|
                |RetractableTo&| NIL |BasicType&| NIL NIL NIL NIL NIL NIL NIL
                |RetractableTo&| |RetractableTo&|
                |TrigonometricFunctionCategory&|
                |ArcTrigonometricFunctionCategory&|
                |HyperbolicFunctionCategory&| NIL
                |ElementaryFunctionCategory&|)
             (CONS
              '#((|PolynomialCategory| 6 64 38)
                 (|PolynomialFactorizationExplicit|)
                 (|FiniteAbelianMonoidRing| 6 64) (|UniqueFactorizationDomain|)
                 (|AbelianMonoidRing| 6 64) (|GcdDomain|) (|IntegralDomain|)
                 (|FullyLinearlyExplicitRingOver| 6) (|Algebra| $$)
                 (|Algebra| 37) (|Algebra| 6) (|PartialDifferentialRing| 38)
                 (|LinearlyExplicitRingOver| 6) (|CommutativeRing|)
                 (|Module| $$) (|EntireRing|) (|LinearlyExplicitRingOver| 50)
                 (|Module| 37) (|CharacteristicNonZero|) (|CharacteristicZero|)
                 (|Module| 6) (|BiModule| 6 6) (|Ring|) (|BiModule| $$ $$)
                 (|BiModule| 37 37) (|LeftModule| 6) (|Rng|) (|RightModule| 6)
                 (|LeftModule| $$) (|RightModule| $$) (|LeftModule| 37)
                 (|RightModule| 37) (|AbelianGroup|)
                 (|CancellationAbelianMonoid|) (|SemiRing|) (|AbelianMonoid|)
                 (|Monoid|) (|SemiRng|) (|SemiGroup|) (|AbelianSemiGroup|)
                 (|PatternMatchable| (|Float|)) (|PatternMatchable| 50)
                 (|Comparable|) (|Evalable| $$) (|FullyRetractableTo| 6)
                 (|SetCategory|) (|TranscendentalFunctionCategory|)
                 (|RetractableTo| 38) (|InnerEvalable| 38 $$)
                 (|InnerEvalable| 38 6) (|InnerEvalable| $$ $$)
                 (|RetractableTo| 6) (|unitsKnown|) (|BasicType|)
                 (|CoercibleTo| 12) (|CommutativeStar|) (|noZeroDivisors|)
                 (|canonicalUnitNormal|) (|ConvertibleTo| 32)
                 (|ConvertibleTo| 33) (|ConvertibleTo| 31) (|RetractableTo| 50)
                 (|RetractableTo| 37) (|TrigonometricFunctionCategory|)
                 (|ArcTrigonometricFunctionCategory|)
                 (|HyperbolicFunctionCategory|)
                 (|ArcHyperbolicFunctionCategory|)
                 (|ElementaryFunctionCategory|))
              (|makeByteWordVec2| 28
                                  '(1 0 7 0 8 1 0 6 0 9 1 6 0 0 10 1 0 0 6 11 1
                                    0 12 0 13 2 12 0 0 0 14 1 16 15 12 17 1 0 0
                                    0 18 1 6 0 0 19 1 0 0 0 20 1 6 0 0 21 1 0 0
                                    0 22 1 6 0 0 23 1 0 0 0 24 1 6 0 0 25 1 0 0
                                    0 26 1 6 0 0 27 1 0 0 0 28 1 18 0 0 22 1 18
                                    0 0 18 1 0 7 0 8 1 0 6 0 9 1 18 0 0 20 1 18
                                    0 0 26 1 0 0 6 11 1 0 12 0 13 1 18 0 0 24 1
                                    18 0 0 28)))))
           '|lookupIncomplete|)) 
