
(SDEFUN |RADCAT-;sqrt;2S;1| ((|x| (S)) (% (S)))
        (SPADCALL |x| (SPADCALL (SPADCALL 2 (QREFELT % 9)) (QREFELT % 10))
                  (QREFELT % 11))) 

(SDEFUN |RADCAT-;nthRoot;SIS;2| ((|x| (S)) (|n| (|Integer|)) (% (S)))
        (SPADCALL |x| (SPADCALL (SPADCALL |n| (QREFELT % 9)) (QREFELT % 10))
                  (QREFELT % 11))) 

(DECLAIM (NOTINLINE |RadicalCategory&;|)) 

(DEFUN |RadicalCategory&| (|#1|)
  (SPROG ((|pv$| NIL) (% NIL) (|dv$| NIL) (DV$1 NIL))
         (PROGN
          (LETT DV$1 (|devaluate| |#1|))
          (LETT |dv$| (LIST '|RadicalCategory&| DV$1))
          (LETT % (GETREFV 14))
          (QSETREFV % 0 |dv$|)
          (QSETREFV % 3 (LETT |pv$| (|buildPredVector| 0 0 NIL)))
          (|stuffDomainSlots| %)
          (QSETREFV % 6 |#1|)
          (SETF |pv$| (QREFELT % 3))
          %))) 

(MAKEPROP '|RadicalCategory&| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|Integer|) (|Fraction| 7)
              (0 . |coerce|) (5 . |inv|) (10 . ^) |RADCAT-;sqrt;2S;1|
              |RADCAT-;nthRoot;SIS;2|)
           '#(|sqrt| 16 |nthRoot| 21) 'NIL
           (CONS (|makeByteWordVec2| 1 '(0))
                 (CONS '#(NIL)
                       (CONS
                        '#((|Join|
                            (|mkCategory|
                             (LIST '((|sqrt| (|#1| |#1|)) T)
                                   '((|nthRoot| (|#1| |#1| (|Integer|))) T))
                             (LIST) NIL NIL)))
                        (|makeByteWordVec2| 13
                                            '(1 8 0 7 9 1 8 0 0 10 2 6 0 0 8 11
                                              1 0 0 0 12 2 0 0 0 7 13)))))
           '|lookupComplete|)) 
