
(/VERSIONCHECK 2) 

(DEFUN |STR;qelt| (|m| |i| |j| $)
  (PROG (#1=#:G1796)
    (RETURN
     (QAREF1
      (QAREF1
       (PROG2
           (LETT #1# |m| |STR;qelt|)
           (QCDR #1#)
         (|check-union| (QEQCAR #1# 0)
                        (|PrimitiveArray| (|PrimitiveArray| (|DoubleFloat|)))
                        #1#))
       |i|)
      |j|)))) 

(DEFUN |STR;stransform;L$;2| (|m| $)
  (PROG (|j| |i| |arr|)
    (RETURN
     (SEQ
      (COND
       ((EQUAL (QREFELT $ 6) (|SCartesian| 2))
        (SEQ
         (LETT |arr| (MAKEARR1 3 (MAKE-ARRAY 0)) . #1=(|STR;stransform;L$;2|))
         (SEQ (LETT |i| 0 . #1#) G190 (COND ((QSGREATERP |i| 2) #2=(GO G191)))
              (SEQ (QSETAREF1 |arr| |i| (MAKEARR1 3 0.0))
                   (EXIT
                    (SEQ (LETT |j| 0 . #1#) G190
                         (COND ((QSGREATERP |j| 2) #2#))
                         (SEQ
                          (EXIT
                           (QSETAREF1 (QAREF1 |arr| |i|) |j|
                                      (SPADCALL
                                       (SPADCALL |m| (+ |i| 1) (QREFELT $ 11))
                                       (+ |j| 1) (QREFELT $ 13)))))
                         (LETT |j| (QSADD1 |j|) . #1#) #3=(GO G190) G191
                         (EXIT NIL))))
              (LETT |i| (QSADD1 |i|) . #1#) #3# G191 (EXIT NIL))
         (EXIT (CONS 0 |arr|))))
       ((EQUAL (QREFELT $ 6) (|SCartesian| 3))
        (SEQ (LETT |arr| (MAKEARR1 4 (MAKE-ARRAY 0)) . #1#)
             (SEQ (LETT |i| 0 . #1#) G190 (COND ((QSGREATERP |i| 3) #2#))
                  (SEQ (QSETAREF1 |arr| |i| (MAKEARR1 4 0.0))
                       (EXIT
                        (SEQ (LETT |j| 0 . #1#) G190
                             (COND ((QSGREATERP |j| 3) #2#))
                             (SEQ
                              (EXIT
                               (QSETAREF1 (QAREF1 |arr| |i|) |j|
                                          (SPADCALL
                                           (SPADCALL |m| (+ |i| 1)
                                                     (QREFELT $ 11))
                                           (+ |j| 1) (QREFELT $ 13)))))
                             (LETT |j| (QSADD1 |j|) . #1#) #3# G191
                             (EXIT NIL))))
                  (LETT |i| (QSADD1 |i|) . #1#) #3# G191 (EXIT NIL))
             (EXIT (CONS 0 |arr|))))
       ('T
        (SEQ (|error| "invalid point type in transform constructor")
             (EXIT (SPADCALL (QREFELT $ 14)))))))))) 

(PUT '|STR;stransform;M$;3| '|SPADreplace| '(XLAM (|gen|) (CONS 1 |gen|))) 

(DEFUN |STR;stransform;M$;3| (|gen| $) (CONS 1 |gen|)) 

(DEFUN |STR;stransform;M$;4| (|cpx| $)
  (PROG (|pp|)
    (RETURN
     (SEQ
      (LETT |pp| (CONS #'|STR;stransform;M$;4!0| (VECTOR |cpx| $))
            |STR;stransform;M$;4|)
      (EXIT (CONS 1 |pp|)))))) 

(DEFUN |STR;stransform;M$;4!0| (|x| $$)
  (PROG ($ |cpx|)
    (LETT $ (QREFELT $$ 1) . #1=(|STR;stransform;M$;4|))
    (LETT |cpx| (QREFELT $$ 0) . #1#)
    (RETURN
     (PROGN
      (SPADCALL (SPADCALL (SPADCALL |x| (QREFELT $ 20)) |cpx|)
                (QREFELT $ 21)))))) 

(DEFUN |STR;stransform;L$;5| (|m| $) (CONS 2 (SPADCALL |m| (QREFELT $ 25)))) 

(DEFUN |STR;stranslate;6Df$;6|
       (|offsetx| |offsety| |offsetz| |scalex| |scaley| |scalez| $)
  (PROG (#1=#:G1853 |pp| |trConf| CA |m|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (COND
         ((EQUAL (QREFELT $ 6) (|SCartesian| 2))
          (PROGN
           (LETT #1#
                 (SPADCALL
                  (LIST (LIST |scalex| 0.0 |offsetx|)
                        (LIST 0.0 |scaley| |offsety|) (LIST 0.0 0.0 1.0))
                  (QREFELT $ 15))
                 . #2=(|STR;stranslate;6Df$;6|))
           (GO #1#))))
        (COND
         ((EQUAL (QREFELT $ 6) (|SCartesian| 3))
          (PROGN
           (LETT #1#
                 (SPADCALL
                  (LIST (LIST |scalex| 0.0 0.0 |offsetx|)
                        (LIST 0.0 |scaley| 0.0 |offsety|)
                        (LIST 0.0 0.0 |scalez| |offsetz|)
                        (LIST 0.0 0.0 0.0 1.0))
                  (QREFELT $ 15))
                 . #2#)
           (GO #1#))))
        (COND
         ((EQUAL (QREFELT $ 6) (|SConformal| 2))
          (SEQ
           (LETT |m|
                 (SPADCALL
                  (LIST (LIST 0.0 1.0 0.0 0.0) (LIST 1.0 0.0 0.0 0.0)
                        (LIST 0.0 0.0 1.0 0.0) (LIST 0.0 0.0 0.0 1.0))
                  (QREFELT $ 28))
                 . #2#)
           (LETT CA
                 (|CliffordAlgebra| 4 (|DoubleFloat|)
                                    (SPADCALL |m| (QREFELT $ 30)))
                 . #2#)
           (LETT |trConf|
                 (SPADCALL
                  (LIST 1.0 0.0 0.0 0.0 0.0 0.0
                        (MUL-DF |offsetx|
                                (SPADCALL (SPADCALL 5 -1 10 (QREFELT $ 33))
                                          (QREFELT $ 34)))
                        0.0 0.0 0.0
                        (MUL-DF |offsety|
                                (SPADCALL (SPADCALL 5 -1 10 (QREFELT $ 33))
                                          (QREFELT $ 34)))
                        0.0 0.0 0.0 0.0 0.0)
                  (|compiledLookupCheck| '|multivector|
                                         (LIST '$
                                               (LIST '|List|
                                                     (LIST '|DoubleFloat|)))
                                         CA))
                 . #2#)
           (EXIT (PROGN (LETT #1# (CONS 2 |trConf|) . #2#) (GO #1#))))))
        (COND
         ((EQUAL (QREFELT $ 6) (|SArgand|))
          (SEQ
           (LETT |pp|
                 (CONS #'|STR;stranslate;6Df$;6!0|
                       (VECTOR |offsety| |offsetx| $))
                 . #2#)
           (EXIT (PROGN (LETT #1# (CONS 1 |pp|) . #2#) (GO #1#))))))
        (EXIT (SPADCALL (QREFELT $ 14)))))
      #1# (EXIT #1#))))) 

(DEFUN |STR;stranslate;6Df$;6!0| (|x| $$)
  (PROG ($ |offsetx| |offsety|)
    (LETT $ (QREFELT $$ 2) . #1=(|STR;stranslate;6Df$;6|))
    (LETT |offsetx| (QREFELT $$ 1) . #1#)
    (LETT |offsety| (QREFELT $$ 0) . #1#)
    (RETURN
     (PROGN
      (SPADCALL
       (SPADCALL (SPADCALL |x| (QREFELT $ 20))
                 (SPADCALL |offsetx| |offsety| (QREFELT $ 35)) (QREFELT $ 36))
       (QREFELT $ 21)))))) 

(PUT '|STR;identity;$;7| '|SPADreplace| '(XLAM NIL (CONS 3 "iden"))) 

(DEFUN |STR;identity;$;7| ($) (CONS 3 "iden")) 

(DEFUN |STR;applyTransPt2| (|tr| |inpt| $)
  (PROG (|b| #1=#:G1796 |a| |vin| #2=#:G1861)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (COND
         ((QEQCAR |tr| 3)
          (PROGN (LETT #2# |inpt| . #3=(|STR;applyTransPt2|)) (GO #2#))))
        (COND
         ((QEQCAR |tr| 1)
          (SEQ
           (|sayTeX| "can't transform Euclidean point using general function")
           (EXIT (PROGN (LETT #2# |inpt| . #3#) (GO #2#))))))
        (LETT |vin| (SPADCALL |inpt| (QREFELT $ 39)) . #3#)
        (LETT |a|
              (ADD-DF
               (ADD-DF
                (MUL-DF
                 (QAREF1
                  (QAREF1
                   (PROG2
                       (LETT #1# |tr| . #3#)
                       (QCDR #1#)
                     (|check-union| (QEQCAR #1# 0)
                                    (|PrimitiveArray|
                                     (|PrimitiveArray| (|DoubleFloat|)))
                                    #1#))
                   0)
                  0)
                 (SPADCALL |vin| 1 (QREFELT $ 13)))
                (MUL-DF
                 (QAREF1
                  (QAREF1
                   (PROG2
                       (LETT #1# |tr| . #3#)
                       (QCDR #1#)
                     (|check-union| (QEQCAR #1# 0)
                                    (|PrimitiveArray|
                                     (|PrimitiveArray| (|DoubleFloat|)))
                                    #1#))
                   0)
                  1)
                 (SPADCALL |vin| 2 (QREFELT $ 13))))
               (MUL-DF
                (QAREF1
                 (QAREF1
                  (PROG2
                      (LETT #1# |tr| . #3#)
                      (QCDR #1#)
                    (|check-union| (QEQCAR #1# 0)
                                   (|PrimitiveArray|
                                    (|PrimitiveArray| (|DoubleFloat|)))
                                   #1#))
                  0)
                 2)
                (SPADCALL |vin| 3 (QREFELT $ 13))))
              . #3#)
        (LETT |b|
              (ADD-DF
               (ADD-DF
                (MUL-DF
                 (QAREF1
                  (QAREF1
                   (PROG2
                       (LETT #1# |tr| . #3#)
                       (QCDR #1#)
                     (|check-union| (QEQCAR #1# 0)
                                    (|PrimitiveArray|
                                     (|PrimitiveArray| (|DoubleFloat|)))
                                    #1#))
                   1)
                  0)
                 (SPADCALL |vin| 1 (QREFELT $ 13)))
                (MUL-DF
                 (QAREF1
                  (QAREF1
                   (PROG2
                       (LETT #1# |tr| . #3#)
                       (QCDR #1#)
                     (|check-union| (QEQCAR #1# 0)
                                    (|PrimitiveArray|
                                     (|PrimitiveArray| (|DoubleFloat|)))
                                    #1#))
                   1)
                  1)
                 (SPADCALL |vin| 2 (QREFELT $ 13))))
               (MUL-DF
                (QAREF1
                 (QAREF1
                  (PROG2
                      (LETT #1# |tr| . #3#)
                      (QCDR #1#)
                    (|check-union| (QEQCAR #1# 0)
                                   (|PrimitiveArray|
                                    (|PrimitiveArray| (|DoubleFloat|)))
                                   #1#))
                  1)
                 2)
                (SPADCALL |vin| 3 (QREFELT $ 13))))
              . #3#)
        (EXIT (SPADCALL |a| |b| (QREFELT $ 43)))))
      #2# (EXIT #2#))))) 

(DEFUN |STR;applyTransPt3| (|tr| |inpt| $)
  (PROG (|c| #1=#:G1796 |b| |a| |vin| #2=#:G1868)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (COND
         ((QEQCAR |tr| 3)
          (PROGN (LETT #2# |inpt| . #3=(|STR;applyTransPt3|)) (GO #2#))))
        (COND
         ((QEQCAR |tr| 1)
          (SEQ
           (|sayTeX| "can't transform Euclidean point using general function")
           (EXIT (PROGN (LETT #2# |inpt| . #3#) (GO #2#))))))
        (LETT |vin| (SPADCALL |inpt| (QREFELT $ 45)) . #3#)
        (LETT |a|
              (ADD-DF
               (ADD-DF
                (ADD-DF
                 (MUL-DF
                  (QAREF1
                   (QAREF1
                    (PROG2
                        (LETT #1# |tr| . #3#)
                        (QCDR #1#)
                      (|check-union| (QEQCAR #1# 0)
                                     (|PrimitiveArray|
                                      (|PrimitiveArray| (|DoubleFloat|)))
                                     #1#))
                    0)
                   0)
                  (SPADCALL |vin| 1 (QREFELT $ 13)))
                 (MUL-DF
                  (QAREF1
                   (QAREF1
                    (PROG2
                        (LETT #1# |tr| . #3#)
                        (QCDR #1#)
                      (|check-union| (QEQCAR #1# 0)
                                     (|PrimitiveArray|
                                      (|PrimitiveArray| (|DoubleFloat|)))
                                     #1#))
                    0)
                   1)
                  (SPADCALL |vin| 2 (QREFELT $ 13))))
                (MUL-DF
                 (QAREF1
                  (QAREF1
                   (PROG2
                       (LETT #1# |tr| . #3#)
                       (QCDR #1#)
                     (|check-union| (QEQCAR #1# 0)
                                    (|PrimitiveArray|
                                     (|PrimitiveArray| (|DoubleFloat|)))
                                    #1#))
                   0)
                  2)
                 (SPADCALL |vin| 3 (QREFELT $ 13))))
               (MUL-DF
                (QAREF1
                 (QAREF1
                  (PROG2
                      (LETT #1# |tr| . #3#)
                      (QCDR #1#)
                    (|check-union| (QEQCAR #1# 0)
                                   (|PrimitiveArray|
                                    (|PrimitiveArray| (|DoubleFloat|)))
                                   #1#))
                  0)
                 3)
                (SPADCALL |vin| 4 (QREFELT $ 13))))
              . #3#)
        (LETT |b|
              (ADD-DF
               (ADD-DF
                (ADD-DF
                 (MUL-DF
                  (QAREF1
                   (QAREF1
                    (PROG2
                        (LETT #1# |tr| . #3#)
                        (QCDR #1#)
                      (|check-union| (QEQCAR #1# 0)
                                     (|PrimitiveArray|
                                      (|PrimitiveArray| (|DoubleFloat|)))
                                     #1#))
                    1)
                   0)
                  (SPADCALL |vin| 1 (QREFELT $ 13)))
                 (MUL-DF
                  (QAREF1
                   (QAREF1
                    (PROG2
                        (LETT #1# |tr| . #3#)
                        (QCDR #1#)
                      (|check-union| (QEQCAR #1# 0)
                                     (|PrimitiveArray|
                                      (|PrimitiveArray| (|DoubleFloat|)))
                                     #1#))
                    1)
                   1)
                  (SPADCALL |vin| 2 (QREFELT $ 13))))
                (MUL-DF
                 (QAREF1
                  (QAREF1
                   (PROG2
                       (LETT #1# |tr| . #3#)
                       (QCDR #1#)
                     (|check-union| (QEQCAR #1# 0)
                                    (|PrimitiveArray|
                                     (|PrimitiveArray| (|DoubleFloat|)))
                                    #1#))
                   1)
                  2)
                 (SPADCALL |vin| 3 (QREFELT $ 13))))
               (MUL-DF
                (QAREF1
                 (QAREF1
                  (PROG2
                      (LETT #1# |tr| . #3#)
                      (QCDR #1#)
                    (|check-union| (QEQCAR #1# 0)
                                   (|PrimitiveArray|
                                    (|PrimitiveArray| (|DoubleFloat|)))
                                   #1#))
                  1)
                 3)
                (SPADCALL |vin| 4 (QREFELT $ 13))))
              . #3#)
        (LETT |c|
              (ADD-DF
               (ADD-DF
                (ADD-DF
                 (MUL-DF
                  (QAREF1
                   (QAREF1
                    (PROG2
                        (LETT #1# |tr| . #3#)
                        (QCDR #1#)
                      (|check-union| (QEQCAR #1# 0)
                                     (|PrimitiveArray|
                                      (|PrimitiveArray| (|DoubleFloat|)))
                                     #1#))
                    2)
                   0)
                  (SPADCALL |vin| 1 (QREFELT $ 13)))
                 (MUL-DF
                  (QAREF1
                   (QAREF1
                    (PROG2
                        (LETT #1# |tr| . #3#)
                        (QCDR #1#)
                      (|check-union| (QEQCAR #1# 0)
                                     (|PrimitiveArray|
                                      (|PrimitiveArray| (|DoubleFloat|)))
                                     #1#))
                    2)
                   1)
                  (SPADCALL |vin| 2 (QREFELT $ 13))))
                (MUL-DF
                 (QAREF1
                  (QAREF1
                   (PROG2
                       (LETT #1# |tr| . #3#)
                       (QCDR #1#)
                     (|check-union| (QEQCAR #1# 0)
                                    (|PrimitiveArray|
                                     (|PrimitiveArray| (|DoubleFloat|)))
                                    #1#))
                   2)
                  2)
                 (SPADCALL |vin| 3 (QREFELT $ 13))))
               (MUL-DF
                (QAREF1
                 (QAREF1
                  (PROG2
                      (LETT #1# |tr| . #3#)
                      (QCDR #1#)
                    (|check-union| (QEQCAR #1# 0)
                                   (|PrimitiveArray|
                                    (|PrimitiveArray| (|DoubleFloat|)))
                                   #1#))
                  2)
                 3)
                (SPADCALL |vin| 4 (QREFELT $ 13))))
              . #3#)
        (EXIT (SPADCALL |a| |b| |c| (QREFELT $ 46)))))
      #2# (EXIT #2#))))) 

(DEFUN |STR;applyTransCx| (|tr| |inpt| $)
  (PROG (|res| |f| #1=#:G1797 #2=#:G1871)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (COND
         ((QEQCAR |tr| 3)
          (PROGN (LETT #2# |inpt| . #3=(|STR;applyTransCx|)) (GO #2#))))
        (COND
         ((QEQCAR |tr| 0)
          (SEQ (|sayTeX| "can't transform complex using matrix")
               (|sayTeX|
                (SPADCALL (LIST "applyTrans(" (|mathObject2String| |tr|) ")")
                          (QREFELT $ 49)))
               (EXIT (PROGN (LETT #2# |inpt| . #3#) (GO #2#))))))
        (LETT |f|
              (PROG2
                  (LETT #1# |tr| . #3#)
                  (QCDR #1#)
                (|check-union| (QEQCAR #1# 1)
                               (|Mapping| (QREFELT $ 6) (QREFELT $ 6)) #1#))
              . #3#)
        (LETT |res| (SPADCALL |inpt| |f|) . #3#) (EXIT |res|)))
      #2# (EXIT #2#))))) 

(DEFUN |STR;applyTransConf2| (|tr| |inpt| $)
  (PROG (|res| |conjugation| |trConf| #1=#:G1798 |ptConf| CA |m| #2=#:G1874)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (COND
         ((QEQCAR |tr| 3)
          (PROGN (LETT #2# |inpt| . #3=(|STR;applyTransConf2|)) (GO #2#))))
        (COND
         ((NULL (QEQCAR |tr| 2))
          (SEQ (|sayTeX| "this transform not compatible with conformal")
               (|sayTeX|
                (SPADCALL (LIST "applyTrans(" (|mathObject2String| |tr|) ")")
                          (QREFELT $ 49)))
               (EXIT (PROGN (LETT #2# |inpt| . #3#) (GO #2#))))))
        (LETT |m|
              (SPADCALL
               (LIST (LIST 0.0 1.0 0.0 0.0) (LIST 1.0 0.0 0.0 0.0)
                     (LIST 0.0 0.0 1.0 0.0) (LIST 0.0 0.0 0.0 1.0))
               (QREFELT $ 28))
              . #3#)
        (LETT CA
              (|CliffordAlgebra| 4 (|DoubleFloat|)
                                 (SPADCALL |m| (QREFELT $ 30)))
              . #3#)
        (LETT |ptConf| |inpt| . #3#)
        (LETT |trConf|
              (PROG2
                  (LETT #1# |tr| . #3#)
                  (QCDR #1#)
                (|check-union| (QEQCAR #1# 2)
                               (|PrimitiveArray| (|DoubleFloat|)) #1#))
              . #3#)
        (LETT |conjugation|
              (SPADCALL
               (SPADCALL |trConf| |ptConf|
                         (|compiledLookupCheck| '* (LIST '$ '$ '$) CA))
               (SPADCALL |trConf|
                         (|compiledLookupCheck| '|reverse| (LIST '$ '$) CA))
               (|compiledLookupCheck| '* (LIST '$ '$ '$) CA))
              . #3#)
        (LETT |res| |conjugation| . #3#)
        (EXIT (SPADCALL |res| (QREFELT $ 51)))))
      #2# (EXIT #2#))))) 

(DEFUN |STR;xform;$2PT;12| (|tr| |inpt| $)
  (SEQ
   (COND
    ((EQUAL (QREFELT $ 6) (|SCartesian| 2))
     (|STR;applyTransPt2| |tr| |inpt| $))
    ((EQUAL (QREFELT $ 6) (|SCartesian| 3))
     (|STR;applyTransPt3| |tr| |inpt| $))
    ((EQUAL (QREFELT $ 6) (|SArgand|)) (|STR;applyTransCx| |tr| |inpt| $))
    ((EQUAL (QREFELT $ 6) (|SConformal| 2))
     (|STR;applyTransConf2| |tr| |inpt| $))
    ('T
     (SEQ (|error| "invalid point type in transform")
          (EXIT (SPADCALL 0.0 0.0 (QREFELT $ 43)))))))) 

(DEFUN |STR;compound2| (|tr| |inpt| $)
  (PROG (#1=#:G1885 #2=#:G1796 |j| |i| |arr|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ (LETT |arr| (MAKEARR1 3 (MAKE-ARRAY 0)) . #3=(|STR;compound2|))
            (SEQ (LETT |i| 0 . #3#) G190
                 (COND ((QSGREATERP |i| 2) #4=(GO G191)))
                 (SEQ (QSETAREF1 |arr| |i| (MAKEARR1 3 0.0))
                      (EXIT
                       (SEQ (LETT |j| 0 . #3#) G190
                            (COND ((QSGREATERP |j| 2) #4#))
                            (SEQ
                             (EXIT
                              (QSETAREF1 (QAREF1 |arr| |i|) |j|
                                         (ADD-DF
                                          (ADD-DF
                                           (MUL-DF
                                            (QAREF1
                                             (QAREF1
                                              (PROG2
                                                  (LETT #2# |tr| . #3#)
                                                  (QCDR #2#)
                                                (|check-union| (QEQCAR #2# 0)
                                                               (|PrimitiveArray|
                                                                (|PrimitiveArray|
                                                                 (|DoubleFloat|)))
                                                               #2#))
                                              0)
                                             |j|)
                                            (QAREF1
                                             (QAREF1
                                              (PROG2
                                                  (LETT #2# |inpt| . #3#)
                                                  (QCDR #2#)
                                                (|check-union| (QEQCAR #2# 0)
                                                               (|PrimitiveArray|
                                                                (|PrimitiveArray|
                                                                 (|DoubleFloat|)))
                                                               #2#))
                                              |i|)
                                             0))
                                           (MUL-DF
                                            (QAREF1
                                             (QAREF1
                                              (PROG2
                                                  (LETT #2# |tr| . #3#)
                                                  (QCDR #2#)
                                                (|check-union| (QEQCAR #2# 0)
                                                               (|PrimitiveArray|
                                                                (|PrimitiveArray|
                                                                 (|DoubleFloat|)))
                                                               #2#))
                                              1)
                                             |j|)
                                            (QAREF1
                                             (QAREF1
                                              (PROG2
                                                  (LETT #2# |inpt| . #3#)
                                                  (QCDR #2#)
                                                (|check-union| (QEQCAR #2# 0)
                                                               (|PrimitiveArray|
                                                                (|PrimitiveArray|
                                                                 (|DoubleFloat|)))
                                                               #2#))
                                              |i|)
                                             1)))
                                          (MUL-DF
                                           (QAREF1
                                            (QAREF1
                                             (PROG2
                                                 (LETT #2# |tr| . #3#)
                                                 (QCDR #2#)
                                               (|check-union| (QEQCAR #2# 0)
                                                              (|PrimitiveArray|
                                                               (|PrimitiveArray|
                                                                (|DoubleFloat|)))
                                                              #2#))
                                             2)
                                            |j|)
                                           (QAREF1
                                            (QAREF1
                                             (PROG2
                                                 (LETT #2# |inpt| . #3#)
                                                 (QCDR #2#)
                                               (|check-union| (QEQCAR #2# 0)
                                                              (|PrimitiveArray|
                                                               (|PrimitiveArray|
                                                                (|DoubleFloat|)))
                                                              #2#))
                                             |i|)
                                            2))))))
                            (LETT |j| (QSADD1 |j|) . #3#) #5=(GO G190) G191
                            (EXIT NIL))))
                 (LETT |i| (QSADD1 |i|) . #3#) #5# G191 (EXIT NIL))
            (EXIT (PROGN (LETT #1# (CONS 0 |arr|) . #3#) (GO #1#)))))
      #1# (EXIT #1#))))) 

(DEFUN |STR;compound3| (|tr| |inpt| $)
  (PROG (#1=#:G1894 #2=#:G1796 |j| |i| |arr|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ (LETT |arr| (MAKEARR1 4 (MAKE-ARRAY 0)) . #3=(|STR;compound3|))
            (SEQ (LETT |i| 0 . #3#) G190
                 (COND ((QSGREATERP |i| 3) #4=(GO G191)))
                 (SEQ (QSETAREF1 |arr| |i| (MAKEARR1 4 0.0))
                      (EXIT
                       (SEQ (LETT |j| 0 . #3#) G190
                            (COND ((QSGREATERP |j| 3) #4#))
                            (SEQ
                             (EXIT
                              (QSETAREF1 (QAREF1 |arr| |i|) |j|
                                         (ADD-DF
                                          (ADD-DF
                                           (ADD-DF
                                            (MUL-DF
                                             (QAREF1
                                              (QAREF1
                                               (PROG2
                                                   (LETT #2# |tr| . #3#)
                                                   (QCDR #2#)
                                                 (|check-union| (QEQCAR #2# 0)
                                                                (|PrimitiveArray|
                                                                 (|PrimitiveArray|
                                                                  (|DoubleFloat|)))
                                                                #2#))
                                               0)
                                              |j|)
                                             (QAREF1
                                              (QAREF1
                                               (PROG2
                                                   (LETT #2# |inpt| . #3#)
                                                   (QCDR #2#)
                                                 (|check-union| (QEQCAR #2# 0)
                                                                (|PrimitiveArray|
                                                                 (|PrimitiveArray|
                                                                  (|DoubleFloat|)))
                                                                #2#))
                                               |i|)
                                              0))
                                            (MUL-DF
                                             (QAREF1
                                              (QAREF1
                                               (PROG2
                                                   (LETT #2# |tr| . #3#)
                                                   (QCDR #2#)
                                                 (|check-union| (QEQCAR #2# 0)
                                                                (|PrimitiveArray|
                                                                 (|PrimitiveArray|
                                                                  (|DoubleFloat|)))
                                                                #2#))
                                               1)
                                              |j|)
                                             (QAREF1
                                              (QAREF1
                                               (PROG2
                                                   (LETT #2# |inpt| . #3#)
                                                   (QCDR #2#)
                                                 (|check-union| (QEQCAR #2# 0)
                                                                (|PrimitiveArray|
                                                                 (|PrimitiveArray|
                                                                  (|DoubleFloat|)))
                                                                #2#))
                                               |i|)
                                              1)))
                                           (MUL-DF
                                            (QAREF1
                                             (QAREF1
                                              (PROG2
                                                  (LETT #2# |tr| . #3#)
                                                  (QCDR #2#)
                                                (|check-union| (QEQCAR #2# 0)
                                                               (|PrimitiveArray|
                                                                (|PrimitiveArray|
                                                                 (|DoubleFloat|)))
                                                               #2#))
                                              2)
                                             |j|)
                                            (QAREF1
                                             (QAREF1
                                              (PROG2
                                                  (LETT #2# |inpt| . #3#)
                                                  (QCDR #2#)
                                                (|check-union| (QEQCAR #2# 0)
                                                               (|PrimitiveArray|
                                                                (|PrimitiveArray|
                                                                 (|DoubleFloat|)))
                                                               #2#))
                                              |i|)
                                             2)))
                                          (MUL-DF
                                           (QAREF1
                                            (QAREF1
                                             (PROG2
                                                 (LETT #2# |tr| . #3#)
                                                 (QCDR #2#)
                                               (|check-union| (QEQCAR #2# 0)
                                                              (|PrimitiveArray|
                                                               (|PrimitiveArray|
                                                                (|DoubleFloat|)))
                                                              #2#))
                                             3)
                                            |j|)
                                           (QAREF1
                                            (QAREF1
                                             (PROG2
                                                 (LETT #2# |inpt| . #3#)
                                                 (QCDR #2#)
                                               (|check-union| (QEQCAR #2# 0)
                                                              (|PrimitiveArray|
                                                               (|PrimitiveArray|
                                                                (|DoubleFloat|)))
                                                              #2#))
                                             |i|)
                                            3))))))
                            (LETT |j| (QSADD1 |j|) . #3#) #5=(GO G190) G191
                            (EXIT NIL))))
                 (LETT |i| (QSADD1 |i|) . #3#) #5# G191 (EXIT NIL))
            (EXIT (PROGN (LETT #1# (CONS 0 |arr|) . #3#) (GO #1#)))))
      #1# (EXIT #1#))))) 

(DEFUN |STR;compoundConf2| (|tr| |inpt| $)
  (PROG (#1=#:G1896 |resConf| |inptConf| #2=#:G1798 |trConf| CA |m|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |m|
              (SPADCALL
               (LIST (LIST 0.0 1.0 0.0 0.0) (LIST 1.0 0.0 0.0 0.0)
                     (LIST 0.0 0.0 1.0 0.0) (LIST 0.0 0.0 0.0 1.0))
               (QREFELT $ 28))
              . #3=(|STR;compoundConf2|))
        (LETT CA
              (|CliffordAlgebra| 4 (|DoubleFloat|)
                                 (SPADCALL |m| (QREFELT $ 30)))
              . #3#)
        (LETT |trConf|
              (PROG2
                  (LETT #2# |tr| . #3#)
                  (QCDR #2#)
                (|check-union| (QEQCAR #2# 2)
                               (|PrimitiveArray| (|DoubleFloat|)) #2#))
              . #3#)
        (LETT |inptConf|
              (PROG2
                  (LETT #2# |inpt| . #3#)
                  (QCDR #2#)
                (|check-union| (QEQCAR #2# 2)
                               (|PrimitiveArray| (|DoubleFloat|)) #2#))
              . #3#)
        (LETT |resConf|
              (SPADCALL |trConf| |inptConf|
                        (|compiledLookupCheck| '* (LIST '$ '$ '$) CA))
              . #3#)
        (EXIT (PROGN (LETT #1# (CONS 2 |resConf|) . #3#) (GO #1#)))))
      #1# (EXIT #1#))))) 

(DEFUN |STR;compound;3$;16| (|tr| |inpt| $)
  (PROG (#1=#:G1906 |fn| |in2| |in1|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (COND
         ((QEQCAR |tr| 3)
          (PROGN (LETT #1# |inpt| . #2=(|STR;compound;3$;16|)) (GO #1#))))
        (COND ((QEQCAR |inpt| 3) (PROGN (LETT #1# |tr| . #2#) (GO #1#))))
        (COND
         ((QEQCAR |tr| 0)
          (COND
           ((QEQCAR |inpt| 0)
            (SEQ
             (COND
              ((EQUAL (QREFELT $ 6) (|SCartesian| 2))
               (PROGN
                (LETT #1# (|STR;compound2| |tr| |inpt| $) . #2#)
                (GO #1#))))
             (EXIT
              (COND
               ((EQUAL (QREFELT $ 6) (|SCartesian| 3))
                (PROGN
                 (LETT #1# (|STR;compound3| |tr| |inpt| $) . #2#)
                 (GO #1#))))))))))
        (COND
         ((QEQCAR |tr| 1)
          (COND
           ((QEQCAR |inpt| 1)
            (SEQ (LETT |in1| (CDR |tr|) . #2#) (LETT |in2| (CDR |inpt|) . #2#)
                 (LETT |fn| (SPADCALL |in1| |in2| (QREFELT $ 54)) . #2#)
                 (EXIT (PROGN (LETT #1# (CONS 1 |fn|) . #2#) (GO #1#))))))))
        (COND
         ((QEQCAR |tr| 2)
          (COND
           ((QEQCAR |inpt| 2)
            (PROGN
             (LETT #1# (|STR;compoundConf2| |tr| |inpt| $) . #2#)
             (GO #1#))))))
        (EXIT (SPADCALL (QREFELT $ 14)))))
      #1# (EXIT #1#))))) 

(DEFUN |STR;coerce;$Of;17| (|pt| $)
  (PROG (|s|)
    (RETURN
     (SEQ (LETT |s| "err" . #1=(|STR;coerce;$Of;17|))
          (COND
           ((EQUAL (QREFELT $ 6) (|SCartesian| 2))
            (LETT |s| "2Dtransform" . #1#)))
          (COND
           ((EQUAL (QREFELT $ 6) (|SCartesian| 3))
            (LETT |s| "3Dtransform" . #1#)))
          (COND
           ((EQUAL (QREFELT $ 6) (|SArgand|))
            (LETT |s| "complex transform" . #1#)))
          (COND
           ((EQUAL (QREFELT $ 6) (|SConformal| 2))
            (LETT |s| "2D Conformal" . #1#)))
          (EXIT (SPADCALL |s| (QREFELT $ 57))))))) 

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

(DEFUN |STransform;| (|#1|)
  (PROG (|pv$| $ |dv$| DV$1)
    (RETURN
     (PROGN
      (LETT DV$1 (|devaluate| |#1|) . #1=(|STransform|))
      (LETT |dv$| (LIST '|STransform| DV$1) . #1#)
      (LETT $ (GETREFV 59) . #1#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #1#))
      (|haddProp| |$ConstructorCache| '|STransform| (LIST DV$1) (CONS 1 $))
      (|stuffDomainSlots| $)
      (QSETREFV $ 6 |#1|)
      (SETF |pv$| (QREFELT $ 3))
      (QSETREFV $ 7
                (|Union|
                 (|:| |mtx|
                      (|PrimitiveArray| (|PrimitiveArray| (|DoubleFloat|))))
                 (|:| |general| (|Mapping| |#1| |#1|))
                 (|:| |multiv| (|PrimitiveArray| (|DoubleFloat|)))
                 (|:| |iden| "iden")))
      $)))) 

(MAKEPROP '|STransform| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL (|Type|) (|local| |#1|) '|Rep| (|List| 12)
              (|Integer|) (|List| 8) (0 . |elt|) (|DoubleFloat|) (6 . |elt|)
              |STR;identity;$;7| |STR;stransform;L$;2| (|Mapping| 6 6)
              |STR;stransform;M$;3| (|Complex| 12) (|SArgand|) (12 . |coerce|)
              (17 . |coerce|) (|Mapping| 18 18) |STR;stransform;M$;4|
              (|PrimitiveArray| 12) (22 . |construct|) |STR;stransform;L$;5|
              (|Matrix| 12) (27 . |matrix|) (|SquareMatrix| '4 12)
              (32 . |squareMatrix|) (|PositiveInteger|) (|Float|)
              (37 . |float|) (44 . |coerce|) (49 . |complex|) (55 . +)
              |STR;stranslate;6Df$;6| (|SCartesian| '2) (61 . |extendedCoords|)
              (|Fraction| 9) (66 . |Zero|) (70 . |One|) (74 . |spnt|)
              (|SCartesian| '3) (80 . |extendedCoords|) (85 . |spnt|)
              (|List| $) (|String|) (92 . |concat|) (|SConformal| '2)
              (97 . |normalisePoint|) |STR;xform;$2PT;12|
              (|MappingPackage3| 6 6 6) (102 . *) |STR;compound;3$;16|
              (|OutputForm|) (108 . |coerce|) |STR;coerce;$Of;17|)
           '#(|xform| 113 |stranslate| 119 |stransform| 129 |identity| 149
              |compound| 153 |coerce| 159)
           'NIL
           (CONS (|makeByteWordVec2| 1 '(0))
                 (CONS '#(NIL)
                       (CONS '#(5)
                             (|makeByteWordVec2| 58
                                                 '(2 10 8 0 9 11 2 8 12 0 9 13
                                                   1 19 18 0 20 1 19 0 18 21 1
                                                   24 0 8 25 1 27 0 10 28 1 29
                                                   0 27 30 3 32 0 9 9 31 33 1
                                                   32 12 0 34 2 18 0 12 12 35 2
                                                   18 0 0 0 36 1 38 8 0 39 0 40
                                                   0 41 0 40 0 42 2 38 0 12 12
                                                   43 1 44 8 0 45 3 44 0 12 12
                                                   12 46 1 48 0 47 49 1 50 0 0
                                                   51 2 53 16 16 16 54 1 48 56
                                                   0 57 2 0 6 0 6 52 6 0 0 12
                                                   12 12 12 12 12 37 1 0 0 8 26
                                                   1 0 0 22 23 1 0 0 10 15 1 0
                                                   0 16 17 0 0 0 14 2 0 0 0 0
                                                   55 1 0 56 0 58)))))
           '|lookupComplete|)) 
