4 1 . 1, dotconstrules : true;
7 is(op(1 . x) = "."), dotconstrules : false, dot1simp : false;
16 bfloat_approx_equal(1.1 . 1.1b0, 1.21b0);
48 /*--- exponent rules ----*/
59 (1 + x - x^2).(1 + x - x^2)^^-1;
62 (1 + x - x^2)^^2 .(1 + x - x^2)^^-2;
65 /*--- dotdistrib ---*/
67 a . (b + c), dotdistrib : true;
70 a . (b - c), dotdistrib : true;
73 a . (b + c / 5), dotdistrib : true;
76 /*--- dotexptsimp ---*/
78 is(equal(a . a, a^^2)), dotexptsimp : false, prederror : false;
81 is(equal(a . a, a^^2)), dotexptsimp : true;
84 a . a, dotexptsimp : true;
93 is(equal(a.a,a * a)), prederror : false;
96 is(equal(a.b, b. a)),prederror : false;
99 is(equal(a^^2, a^2)),prederror : false;
102 is(equal(a.b.a, a^^2 . b)),prederror : false;
105 /* See SF Bug # 771061 */
107 expand((vt . a^^(-1) . u+1)^^(-2));
108 ((vt.a^^(-1).u)^^2+2*(vt.a^^(-1).u)+1)^^(-1)$
110 (a + 1)^^(-1) . (a + 1)^^(-1), expon:2;
114 a^^2 + a.b + b . a + b^^2$
117 (a^^2 + a . b + b . a + b^^2)^^-1$
120 a^^2 - a . b - b . a + b^^2$
122 (5 * a + 7 *b)^^2, expand;
123 25 * a^^2 + 35 * a . b + 35 * b . a + 49 * b^^2$
125 (a . b)^^2, expand, dotexptsimp : false;
126 ''(block([dotexptsimp : false], a . b . a . b))$
128 (a . b)^^-1, expand, dotexptsimp : false;
131 a.b.a.b, dotexptsimp : true;
134 /*--- See SF Bug # 629716 ---*/
136 expand((x.y)^^2 . y - x.y.x.y^^2), dotexptsimp : false;
139 5 * a . b - a . (5 * b);
142 (5 * a) . b - 5 * (a . b);
145 a . (5 * b) - 5 *(a . b);
148 /*--- declared scalars---*/
150 (declare(alpha, scalar),0);
153 alpha . x, dotscrules : true;
156 (alpha . a) . b, dotscrules : true;
159 a . (alpha . b), dotscrules : true;
162 declare(".",antisymmetric);
165 b . alpha, dotscrules : true;
168 a . (b . alpha), dotscrules : true;
171 a . (alpha * a), dotscrules : true;
174 remove(".",antisymmetric);
179 is(equal(a . (b . c) , (a . b) . c)), dotassoc : true, prederror : false;
182 is(equal(a . (b . c) , (a . b) . c)), dotassoc : false, prederror : false;
185 (declare(".", commutative),0);
188 is(equal(a . b, b . a));
191 is(equal(a . (b . (c .d)), (a.b) . (c.d)));
194 (remove(".",commutative),0);