1 (kill(all), load("charsets_flatten.lisp"), 0);
10 charsets_flatten(2/3);
13 charsets_flatten(-2/3);
16 charsets_flatten(1.4d2);
19 charsets_flatten(-3.4d0);
25 charsets_flatten(abc);
28 charsets_flatten(%pi);
31 charsets_flatten(rat(x));
34 charsets_flatten(x[5]);
37 charsets_flatten(x[8,32]);
43 charsets_flatten(rat(-x));
46 charsets_flatten(a+b);
49 charsets_flatten(rat(a+b));
52 charsets_flatten(a*b);
55 charsets_flatten(a/b);
58 charsets_flatten(a*b*c);
61 charsets_flatten(a^b);
64 charsets_flatten(a^(a^b));
70 charsets_flatten([[]]);
73 charsets_flatten([x]);
76 charsets_flatten([[x]]);
79 charsets_flatten(f(g(f(f(x)))));
82 charsets_flatten(f(f(g(f(x)))));
85 /* Examples from Macsyma 422 */
87 charsets_flatten([a,b,[c,[d]],e,[[f],g,h]]);
90 charsets_flatten([a,b([c]),[d]]);
93 charsets_flatten(f(f(a,b), f(c,d)));
96 charsets_flatten(f[1](f[1](a,b), f[1](c,d)));
103 charsets_every([false]);
105 charsets_every([false,false]);
107 charsets_every(false);
109 charsets_every(false,false);
111 charsets_every(true);
113 charsets_every([true]);
115 charsets_every([true,true]);
117 charsets_every(true,true);
119 charsets_every([true,false]);
121 charsets_every(true,false);