Show the error messages from errors encountered when plotting
[maxima.git] / archive / share / lisp / revert.lisp
blobe01c5c8c4fde3a170ee37375237597c03c3b986f
1 ;;; -*- Mode: Lisp; Package: Macsyma -*-
2 ;;; Translated code for LMIVAX::MAX$DISK:[SHARE2]REVERT.MC;5
3 ;;; Written on 9/20/1984 06:28:12, from MACSYMA 302
4 ;;; Translated for LPH
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))))
18 (eval-when (compile)
19 (setq $tr_semicompile 'NIL)
20 (setq forms-to-compile-queue ()))
22 (comment "MAX$DISK:[SHARE2]REVERT.MC;5")
24 ;;; General declarations required for translated MACSYMA code.
26 (DECLARE (SPECIAL $W $V))
28 (DEF-MTRVAR $V '$V 1)
30 (DEF-MTRVAR $W '$W 1)
32 (DEFMTRFUN-EXTERNAL ($REVERT $ANY MDEFINE NIL NIL))
34 (DEFMTRFUN-EXTERNAL ($REVERT2 $ANY MDEFINE NIL NIL))
37 (MEVAL* '(($DECLARE) ((MLIST) $V $W) $SPECIAL))
39 (DEFPROP $REVERT T TRANSLATED)
41 (ADD2LNC '$REVERT $PROPS)
43 (DEFMTRFUN
44 ($REVERT $ANY MDEFINE NIL NIL) ($EXP $T) NIL
45 ((LAMBDA ($F $N $V $W $R1)
46 NIL
47 (SETQ $N (SIMPLIFY (MFUNCTION-CALL $HIPOW $EXP $T)))
48 (APPLY '$ARRAY (LIST '((MLIST) $V $W) $N))
49 (SETQ $R1 (DIV 1 (SIMPLIFY (MFUNCTION-CALL $RATCOEF $EXP $T 1))))
50 (MARRAYSET 1 (TRD-MSYMEVAL $V '$V) 1)
51 (DO (($K 2 (+ 1 $K))) ((IS-BOOLE-CHECK (MGRP $K $N)) '$DONE)
52 (MARRAYSET (MUL* (SIMPLIFY (MFUNCTION-CALL $RATCOEF $EXP $T $K)) $R1)
53 (TRD-MSYMEVAL $V '$V) $K)
54 (MARRAYSET (*MMINUS (MARRAYREF (TRD-MSYMEVAL $V '$V) $K))
55 (TRD-MSYMEVAL $W '$W) $K))
56 (MARRAYSET 1 (TRD-MSYMEVAL $W '$W) 1)
57 (SETQ
59 (M-TLAMBDA&ENV
60 (($J) ($N)) NIL
61 (DO (($I (ADD* $J 1) (ADD* 1 $I)))
62 ((IS-BOOLE-CHECK (MGRP $I $N)) '$DONE)
63 (MARRAYSET
64 (ADD*
65 (MARRAYREF (TRD-MSYMEVAL $W '$W) $I)
66 (*MMINUS
67 (MUL* (MARRAYREF (TRD-MSYMEVAL $W '$W) $J)
68 (MARRAYREF
69 (TRD-MSYMEVAL $V '$V) (ADD* $I (*MMINUS $J) 1)))))
70 (TRD-MSYMEVAL $W '$W) $I))))
71 (DO (($J 2 (+ 1 $J))) ((IS-BOOLE-CHECK (MGRP $J (ADD* $N -1))) '$DONE)
72 (SIMPLIFY (MFUNCALL $F $J)))
73 (DO (($K 2 (+ 1 $K))) ((IS-BOOLE-CHECK (MGRP $K (ADD* $N -1))) '$DONE)
74 (DO (($J $K (+ 1 $J)))
75 ((IS-BOOLE-CHECK (MGRP $J (ADD* $N -1))) '$DONE)
76 (SIMPLIFY (MFUNCALL $F $J))))
77 (SETQ $F 0)
78 (DO (($K 1 (+ 1 $K))) ((IS-BOOLE-CHECK (MGRP $K $N)) '$DONE)
79 (SETQ $F (ADD* $F (MUL* (MARRAYREF (TRD-MSYMEVAL $W '$W) $K)
80 (POWER (MUL* $T $R1) $K)))))
81 $F)
82 '$F '$N '$V '$W '$R1))
84 (DEFPROP $REVERT2 T TRANSLATED)
86 (ADD2LNC '$REVERT2 $PROPS)
88 (DEFMTRFUN
89 ($REVERT2 $ANY MDEFINE NIL NIL) ($EXP $VAR $N) NIL
90 ((LAMBDA ($F $V $W $R1 $N)
91 NIL
92 (PROG ()
93 (SETQ $N (SIMPLIFY (MFUNCTION-CALL $HIPOW $EXP $VAR)))
94 (COND ((LIKE $N 0) (RETURN $EXP)))
95 (APPLY '$ARRAY (LIST '((MLIST) $V $W) $N))
96 (MARRAYSET (SIMPLIFY (MFUNCTION-CALL $RATCOEF $EXP $VAR 0))
97 (TRD-MSYMEVAL $V '$V) 0)
98 (SETQ
99 $R1 (DIV 1 (SIMPLIFY (MFUNCTION-CALL $RATCOEF $EXP $VAR 1))))
100 (MARRAYSET 1 (TRD-MSYMEVAL $V '$V) 1)
101 (DO (($K 2 (+ 1 $K))) ((IS-BOOLE-CHECK (MGRP $K $N)) '$DONE)
102 (MARRAYSET
103 (MUL* (SIMPLIFY (MFUNCTION-CALL $RATCOEF $EXP $VAR $K)) $R1)
104 (TRD-MSYMEVAL $V '$V) $K)
105 (MARRAYSET (*MMINUS (MARRAYREF (TRD-MSYMEVAL $V '$V) $K))
106 (TRD-MSYMEVAL $W '$W) $K))
107 (MARRAYSET 1 (TRD-MSYMEVAL $W '$W) 1)
108 (SETQ
110 (M-TLAMBDA&ENV
111 (($J) ($N)) NIL
112 (DO (($I (ADD* $J 1) (ADD* 1 $I)))
113 ((IS-BOOLE-CHECK (MGRP $I $N)) '$DONE)
114 (MARRAYSET
115 (ADD*
116 (MARRAYREF (TRD-MSYMEVAL $W '$W) $I)
117 (*MMINUS (MUL* (MARRAYREF (TRD-MSYMEVAL $W '$W) $J)
118 (MARRAYREF (TRD-MSYMEVAL $V '$V)
119 (ADD* $I (*MMINUS $J) 1)))))
120 (TRD-MSYMEVAL $W '$W) $I))))
121 (DO (($J 2 (+ 1 $J)))
122 ((IS-BOOLE-CHECK (MGRP $J (ADD* $N -1))) '$DONE)
123 (SIMPLIFY (MFUNCALL $F $J)))
124 (DO (($K 2 (+ 1 $K)))
125 ((IS-BOOLE-CHECK (MGRP $K (ADD* $N -1))) '$DONE)
126 (DO (($J $K (+ 1 $J)))
127 ((IS-BOOLE-CHECK (MGRP $J (ADD* $N -1))) '$DONE)
128 (SIMPLIFY (MFUNCALL $F $J))))
129 (SETQ $F 0)
130 (SETQ $R1 (SIMPLIFY (MFUNCTION-CALL $RATDISREP $R1)))
131 (DO (($K 1 (+ 1 $K))) ((IS-BOOLE-CHECK (MGRP $K $N)) '$DONE)
132 (SETQ
134 (ADD*
135 (MUL*
136 (SIMPLIFY
137 (MFUNCTION-CALL
138 $RATDISREP (MARRAYREF (TRD-MSYMEVAL $W '$W) $K)))
139 (POWER
140 (MUL*
141 (SIMPLIFY
142 (MFUNCTION-CALL
143 $RATDISREP
144 (ADD*
145 $VAR
146 (*MMINUS (MARRAYREF (TRD-MSYMEVAL $V '$V) 0)))))
147 $R1)
148 $K))
149 $F)))
150 (RETURN $F)))
151 '$F '$V '$W '$R1 '$N))
153 (compile-forms-to-compile-queue)