1 ;;; -*- Mode: Lisp; Package: Macsyma -*-
2 ;;; Translated code for LMIVAX::MAX$DISK:[SHARE1]INVERT.MC;2
3 ;;; Written on 9/12/1984 02:52:37, from MACSYMA 302
6 ;;; TRANSL-AUTOLOAD version NIL
7 ;;; TRANSS version 87 TRANSL version 1157 TRUTIL version 27
8 ;;; TRANS1 version 108 TRANS2 version 39 TRANS3 version 50
9 ;;; TRANS4 version 29 TRANS5 version 26 TRANSF version NIL
10 ;;; TROPER version 15 TRPRED version 6 MTAGS version NIL
11 ;;; MDEFUN version 58 TRANSQ version 88 FCALL version 40
12 ;;; ACALL version 70 TRDATA version 68 MCOMPI version 146
13 ;;; TRMODE version 73 TRHOOK version NIL
14 (eval-when (compile eval
)
15 (setq *infile-name-key
*
16 (namestring (truename '#.standard-input
))))
19 (setq $tr_semicompile
'NIL
)
20 (setq forms-to-compile-queue
()))
22 (comment "MAX$DISK:[SHARE1]INVERT.MC;2")
24 ;;; General declarations required for translated MACSYMA code.
26 (DECLARE (SPECIAL $SCALARMATRIXP
))
28 (DEFMTRFUN-EXTERNAL ($ADJOINT $ANY MDEFINE NIL NIL
))
30 (DEF-MTRVAR $SCALARMATRIXP
'$SCALARMATRIXP
1)
32 (DEFMTRFUN-EXTERNAL ($INVERT $ANY MDEFINE NIL NIL
))
35 (DEFPROP $ADJOINT T TRANSLATED
)
37 (ADD2LNC '$ADJOINT $PROPS
)
40 ($ADJOINT $ANY MDEFINE NIL NIL
) ($MAT
) NIL
43 (SETQ $N
(MFUNCTION-CALL $LENGTH $MAT
))
44 (SETQ $ADJ
(SIMPLIFY (MFUNCTION-CALL $IDENT $N
)))
47 (DO (($I
1 (+ 1 $I
))) ((IS-BOOLE-CHECK (MGRP $I $N
)) '$DONE
)
48 (DO (($J
1 (+ 1 $J
))) ((IS-BOOLE-CHECK (MGRP $J $N
)) '$DONE
)
50 (MUL* (POWER -
1 (+ $I $J
))
54 (SIMPLIFY (MFUNCTION-CALL $MINOR $MAT $J $I
)))))
59 (DEFPROP $INVERT T TRANSLATED
)
61 (ADD2LNC '$INVERT $PROPS
)
64 ($INVERT $ANY MDEFINE NIL NIL
) ($MAT
) NIL
67 (SETQ $ADJ
(SIMPLIFY (MFUNCTION-CALL $ADJOINT $MAT
)))
70 ((LAMBDA ($SCALARMATRIXP
)
71 NIL
(DIV $ADJ
(NCMUL2 (SIMPLIFY (MFUNCTION-CALL $ROW $MAT
1))
72 (SIMPLIFY (MFUNCTION-CALL $COL $ADJ
1)))))
74 (COND ((AND (LIKE (TRD-MSYMEVAL $SCALARMATRIXP
'$SCALARMATRIXP
) T
)
75 (= (MFUNCTION-CALL $LENGTH $MAT
) 1))
80 (compile-forms-to-compile-queue)