1 Maxima
5.35.1 http
://maxima.sourceforge.net
2 using Lisp SBCL
1.1.14.debian
3 Distributed under the GNU Public License. See the file COPYING.
4 Dedicated
to the memory of William Schelter.
5 The
function bug_report
() provides bug reporting information.
6 (%i1
) load
("charsets.mac");
8 ; file
: /home
/michel
/Documents
/pro
/charsets
/maxima_charsets
/charsets_set.lisp
9 ; in: DEFUN $CHARSETS_UNORDEREDP
10 ; (DEFUN MAXIMA
::$CHARSETS_UNORDEREDP
(MAXIMA
::A MAXIMA
::B
) T
)
12 ; caught STYLE
-WARNING
:
13 ; The variable A is defined but never used.
15 ; caught STYLE
-WARNING
:
16 ; The variable B is defined but never used.
18 ; compilation unit finished
19 ; caught
2 STYLE
-WARNING conditions
21 (%i2
) load
("test.mac");
23 (%i3
) charsets_test
();
24 Executing test number
1
26 charsets_charset
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
27 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
])$
28 Test
1 expected output
:
29 [[x1
*(2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1),
30 x1
*x3^
2+x3^
2-x1^
2*x2
*x3
-x1
*x2
*x3
+x1^
3*x2
+3*x1^
2*x2
,x1
*x4
+x3
-x1
*x2
]]$
32 Executing test number
2
34 charsets_charset
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
35 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],basset
)$
36 Test
2 expected output
:
37 [[x1
*(2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1),
38 x1
*x3^
2+x3^
2-x1^
2*x2
*x3
-x1
*x2
*x3
+x1^
3*x2
+3*x1^
2*x2
,x1
*x4
+x3
-x1
*x2
]]$
40 Executing test number
3
42 charsets_charset
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
43 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],wbasset
)$
44 Test
3 expected output
:
45 [[x1
*(2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1),x3^
2-x1
*x2
*x3
+2*x1
*x2^
2+x1^
2*x2
+x1
,
48 Executing test number
4
50 charsets_charset
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
51 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],qbasset
)$
52 Test
4 expected output
:
53 [[x1
*(2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1),x3^
2-x1
*x2
*x3
+2*x1
*x2^
2+x1^
2*x2
+x1
,
56 Executing test number
5
58 charsets_charset
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
59 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],charsetn
)$
60 Test
5 expected output
:
61 [[x1
*(2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1),
62 x1
*x3^
2+x3^
2-x1^
2*x2
*x3
-x1
*x2
*x3
+x1^
3*x2
+3*x1^
2*x2
,x1
*x4
+x3
-x1
*x2
]]$
64 Executing test number
6
66 charsets_charset
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
67 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],wcharsetn
)$
68 Test
6 expected output
:
69 [[x1
*(2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1),x3^
2-x1
*x2
*x3
+2*x1
*x2^
2+x1^
2*x2
+x1
,
72 Executing test number
7
74 charsets_charset
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
75 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],qcharsetn
)$
76 Test
7 expected output
:
77 [[x1
*(2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1),x3^
2-x1
*x2
*x3
+2*x1
*x2^
2+x1^
2*x2
+x1
,
80 Executing test number
8
82 charsets_charset
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
83 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],triset
)$
84 Test
8 expected output
:
85 [[x1
*(2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1),x3^
2-x1
*x2
*x3
+2*x1
*x2^
2+x1^
2*x2
+x1
,
88 Executing test number
9
90 charsets_charset
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
91 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],trisetc
)$
92 Test
9 expected output
:
93 [[x1
*(2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1),
94 x1
*x3^
2+x3^
2-x1^
2*x2
*x3
-x1
*x2
*x3
+x1^
3*x2
+3*x1^
2*x2
,x1
*x4
+x3
-x1
*x2
]]$
96 Executing test number
10
98 charsets_mcharset
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
99 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
])$
100 Test
10 expected output
:
102 [2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1,
103 x1
*x3^
2+x3^
2-x1^
2*x2
*x3
-x1
*x2
*x3
+x1^
3*x2
+3*x1^
2*x2
,x1
*x4
+x3
-x1
*x2
]]]$
104 CharSets_Test
: 10 Good
105 Executing test number
11
107 charsets_mcharset
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
108 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],basset
)$
109 Test
11 expected output
:
111 [2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1,
112 x1
*x3^
2+x3^
2-x1^
2*x2
*x3
-x1
*x2
*x3
+x1^
3*x2
+3*x1^
2*x2
,x1
*x4
+x3
-x1
*x2
]]]$
113 CharSets_Test
: 11 Good
114 Executing test number
12
116 charsets_mcharset
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
117 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],wbasset
)$
118 Test
12 expected output
:
120 [2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1,x3^
2-x1
*x2
*x3
+2*x1
*x2^
2+x1^
2*x2
+x1
,
122 CharSets_Test
: 12 Good
123 Executing test number
13
125 charsets_mcharset
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
126 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],qbasset
)$
127 Test
13 expected output
:
129 [2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1,x3^
2-x1
*x2
*x3
+2*x1
*x2^
2+x1^
2*x2
+x1
,
131 CharSets_Test
: 13 Good
132 Executing test number
14
134 charsets_mcharset
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
135 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],charsetn
)$
136 Test
14 expected output
:
138 [2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1,
139 x1
*x3^
2+x3^
2-x1^
2*x2
*x3
-x1
*x2
*x3
+x1^
3*x2
+3*x1^
2*x2
,x1
*x4
+x3
-x1
*x2
]]]$
140 CharSets_Test
: 14 Good
141 Executing test number
15
143 charsets_mcharset
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
144 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],wcharsetn
)$
145 Test
15 expected output
:
147 [2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1,x3^
2-x1
*x2
*x3
+2*x1
*x2^
2+x1^
2*x2
+x1
,
149 CharSets_Test
: 15 Good
150 Executing test number
16
152 charsets_mcharset
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
153 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],qcharsetn
)$
154 Test
16 expected output
:
156 [2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1,x3^
2-x1
*x2
*x3
+2*x1
*x2^
2+x1^
2*x2
+x1
,
158 CharSets_Test
: 16 Good
159 Executing test number
17
161 charsets_mcharset
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
162 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],triset
)$
163 Test
17 expected output
:
165 [2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1,x3^
2-x1
*x2
*x3
+2*x1
*x2^
2+x1^
2*x2
+x1
,
167 CharSets_Test
: 17 Good
168 Executing test number
18
170 charsets_mcharset
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
171 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],trisetc
)$
172 Test
18 expected output
:
174 [2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1,
175 x1
*x3^
2+x3^
2-x1^
2*x2
*x3
-x1
*x2
*x3
+x1^
3*x2
+3*x1^
2*x2
,x1
*x4
+x3
-x1
*x2
]]]$
176 CharSets_Test
: 18 Good
177 Executing test number
19
179 charsets_iniset
([12*b^
3+6*b^
2+b
-1,
180 (4*b^
2-1)*(11664*c2^
3+67392*b^
2*c2^
2+58320*b
*c2^
2-17712*c2^
2
181 -50544*b^
2*c2
-58320*b
*c2
+23328*c2
182 +17496*b^
2+29484*b
-6156)
184 Test
19 expected output
:
186 CharSets_Test
: 19 Good
187 Executing test number
20
189 charsets_remset
([-11664*c2^
3-67392*b^
2*c2^
2-58320*b
*c2^
2+17712*c2^
2
190 +50544*b^
2*c2
+58320*b
*c2
-23328*c2
+12*b^
3-17490*b^
2
192 (11664*c2^
3+67392*b^
2*c2^
2+58320*b
*c2^
2-17712*c2^
2
193 -50544*b^
2*c2
-58320*b
*c2
+23328*c2
+17496*b^
2
196 2*(11664*c2^
3+67392*b^
2*c2^
2+58320*b
*c2^
2-17712*c2^
2
197 -50544*b^
2*c2
-58320*b
*c2
+23328*c2
+17496*b^
2
201 11664*c2^
3+67392*b^
2*c2^
2+58320*b
*c2^
2-17712*c2^
2
202 -50544*b^
2*c2
-58320*b
*c2
+23328*c2
+17496*b^
2+29484*b
204 Test
20 expected output
:
206 CharSets_Test
: 20 Good
207 Executing test number
21
209 charsets_charser
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
210 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
])$
211 Test
21 expected output
:
212 [[[x1
*(2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1),
213 x1
*x3^
2+x3^
2-x1^
2*x2
*x3
-x1
*x2
*x3
+x1^
3*x2
+3*x1^
2*x2
,x1
*x4
+x3
-x1
*x2
],
214 [x1
,2*x2^
2+1,x3
,x4^
2-x2
*x4
+3*x2
],[x1
+1,x2
,x3^
2-1,x4
-x3
]]]$
215 CharSets_Test
: 21 Good
216 Executing test number
22
218 charsets_charser
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
219 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],basset
)$
220 Test
22 expected output
:
221 [[[x1
*(2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1),
222 x1
*x3^
2+x3^
2-x1^
2*x2
*x3
-x1
*x2
*x3
+x1^
3*x2
+3*x1^
2*x2
,x1
*x4
+x3
-x1
*x2
],
223 [x1
,2*x2^
2+1,x3
,x4^
2-x2
*x4
+3*x2
],[x1
+1,x2
,x3^
2-1,x4
-x3
]]]$
224 CharSets_Test
: 22 Good
225 Executing test number
24
227 charsets_charser
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
228 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],charsetn
)$
229 Test
24 expected output
:
230 [[[x1
*(2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1),
231 x1
*x3^
2+x3^
2-x1^
2*x2
*x3
-x1
*x2
*x3
+x1^
3*x2
+3*x1^
2*x2
,x1
*x4
+x3
-x1
*x2
],
232 [x1
,2*x2^
2+1,x3
,x4^
2-x2
*x4
+3*x2
],[x1
+1,x2
,x3^
2-1,x4
-x3
]]]$
233 CharSets_Test
: 24 Good
234 Executing test number
26
236 charsets_charser
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
237 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],trisetc
)$
238 Test
26 expected output
:
239 [[[x1
*(2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1),
240 x1
*x3^
2+x3^
2-x1^
2*x2
*x3
-x1
*x2
*x3
+x1^
3*x2
+3*x1^
2*x2
,x1
*x4
+x3
-x1
*x2
],
241 [x1
,2*x2^
2+1,x3
,x4^
2-x2
*x4
+3*x2
],[x1
+1,x2
,x3^
2-1,x4
-x3
]]]$
242 CharSets_Test
: 26 Good
243 Executing test number
27
245 charsets_mcs
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
246 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
])$
247 Test
27 expected output
:
248 [[[2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1,
249 x1
*x3^
2+x3^
2-x1^
2*x2
*x3
-x1
*x2
*x3
+x1^
3*x2
+3*x1^
2*x2
,x1
*x4
+x3
-x1
*x2
],
250 [x1
,2*x2^
2+1,x3
,x4^
2-x2
*x4
+3*x2
],[x1
+1,x2
,x3^
2-1,x4
-x3
]]]$
251 CharSets_Test
: 27 Good
252 Executing test number
28
254 charsets_mcs
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
255 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],basset
)$
256 Test
28 expected output
:
257 [[[2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1,
258 x1
*x3^
2+x3^
2-x1^
2*x2
*x3
-x1
*x2
*x3
+x1^
3*x2
+3*x1^
2*x2
,x1
*x4
+x3
-x1
*x2
],
259 [x1
,2*x2^
2+1,x3
,x4^
2-x2
*x4
+3*x2
],[x1
+1,x2
,x3^
2-1,x4
-x3
]]]$
260 CharSets_Test
: 28 Good
261 Executing test number
29
263 charsets_mcs
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
264 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],wbasset
)$
265 Test
29 expected output
:
266 [[[2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1,x3^
2-x1
*x2
*x3
+2*x1
*x2^
2+x1^
2*x2
+x1
,
267 x1
*x4
+x3
-x1
*x2
],[x1
,2*x2^
2+1,x3
,x4^
2-x2
*x4
+3*x2
],
268 [x1
+1,x2
,x3^
2-1,x3
*x4
-2*x2^
2-x1
*x2
-1]],
269 [[2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1,x3^
2-x1
*x2
*x3
+2*x1
*x2^
2+x1^
2*x2
+x1
,
270 x1
*x4
+x3
-x1
*x2
],[x1
,2*x2^
2+1,x3
,x4^
2-x2
*x4
+3*x2
],
271 [x1
+1,x2
,x3^
2+x2
*x3
-2*x2^
2+x2
-1,x3
*x4
-2*x2^
2-x1
*x2
-1]]]$
272 CharSets_Test
: 29 Good
273 Executing test number
30
275 charsets_mcs
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
276 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],charsetn
)$
277 Test
30 expected output
:
278 [[[2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1,
279 x1
*x3^
2+x3^
2-x1^
2*x2
*x3
-x1
*x2
*x3
+x1^
3*x2
+3*x1^
2*x2
,x1
*x4
+x3
-x1
*x2
],
280 [x1
,2*x2^
2+1,x3
,x4^
2-x2
*x4
+3*x2
],[x1
+1,x2
,x3^
2-1,x4
-x3
]]]$
281 CharSets_Test
: 30 Good
282 Executing test number
32
284 charsets_mcs
([x1
*x4^
2+x4^
2-x1
*x2
*x4
-x2
*x4
+x1
*x2
+3*x2
,x1
*x4
+x3
-x1
*x2
,
285 x3
*x4
-2*x2^
2-x1
*x2
-1],[x1
,x2
,x3
,x4
],trisetc
)$
286 Test
32 expected output
:
287 [[[2*x1
*x2^
2+2*x2^
2-2*x1
*x2
+x1
+1,
288 x1
*x3^
2+x3^
2-x1^
2*x2
*x3
-x1
*x2
*x3
+x1^
3*x2
+3*x1^
2*x2
,x1
*x4
+x3
-x1
*x2
],
289 [x1
,2*x2^
2+1,x3
,x4^
2-x2
*x4
+3*x2
],[x1
+1,x2
,x3^
2-1,x4
-x3
]]]$
290 CharSets_Test
: 32 Good