16 conjugate(sqrt(3) + sqrt(7));
31 conjugate(1.4b0 + %i * 5.7b0);
34 conjugate(sqrt(7 + %i * 8));
37 conjugate(log(1 - %i));
61 conjugate(sqrt(1+x^2));
112 (declare(z,complex),0);
115 conjugate(conjugate(z));
118 conjugate(conjugate(conjugate(z)));
127 conjugate(5 + 7 * z);
128 5 + 7 * conjugate(z);
178 conjugate(realpart(z));
181 conjugate(imagpart(z));
196 (assume(imagpart(z) > 0),0);
205 conjugate(log(5 + z));
206 log(5 + conjugate(z))$
208 (declare(w,complex),0);
211 (assume(realpart(w) > 0),0);
220 conjugate(log(7 + w));
221 log(7 + conjugate(w))$
223 (declare(q,complex),0);
232 conjugate(1 + q + q^2);
233 1 + conjugate(q) + conjugate(q)^2$
236 conjugate(q) * (1 + conjugate(q))$
238 conjugate((1+q)/(1-q));
239 (1 + conjugate(q))/(1 - conjugate(q))$
241 declare (p0, even, q1, odd, pq, rational, qp, irrational, rr, real, ii, imaginary);
244 conjugate (p0 + q1 + pq + qp + rr + ii);
245 p0 + q1 + pq + qp + rr - ii;
247 /* conjugate of sums and products */
249 conjugate(sum(cos(k),k,1,n));
252 conjugate(prod(cos(k),k,1,n));
255 conjugate(sum(log(k + %i), k, m, n));
256 sum(log(k - %i), k, m, n)$
258 conjugate(prod(log(k + %i), k, m, n));
259 prod(log(k - %i), k, m, n)$
261 /* conjugate of asin */
263 (assume(x > -1, x < 1),0);
272 conjugate(asin(x + %i));
275 conjugate(asin(x - %i));
278 conjugate(asin(x + %i * y));
281 conjugate(asin(x - %i * y));
301 conjugate(set(8, set(8, set(32 - %i))));
302 set(8, set(8, set(32 + %i)))$
307 conjugate(matrix([]));
310 conjugate(matrix([1,2,%i]));
313 conjugate(matrix([matrix([%i])]));
314 matrix([matrix([-%i])])$
321 conjugate(log(x + %i));
322 log(conjugate(x) - %i)$
324 conjugate(log(-1 + %i));
327 (assume(x > 0, notequal(www,0)), 0);
333 conjugate(log(-x + %i * www));
336 (forget(x > 0, notequal(www,0)),0);
344 conjugate(exp(y - %i * x));
347 (declare(z,complex),0);
353 (declare(n,integer,z,complex),0);
368 conjugate(sinh(cosh(z)));
369 sinh(cosh(conjugate(z)))$
371 /* Test for bug 1491486 */
373 conjugate((1+%i)^%i);
376 (declare(z,complex),0);
379 /* Test for bug 1489285 */
381 is(imagpart(conjugate(z)) # z);
384 (remove(z,complex),0);
387 /* Test for bug 1488344 */
389 matrixp(conjugate(genmatrix(a,100,100)));
392 /* Test for bug 1488359 */
394 is(op(conjugate(f[6](x))) = 'conjugate);
397 /* Tests for bug 1639890 */
398 (assume(notequal(y,0)),0);
401 conjugate(log(-1 + %i * y));
404 conjugate(log(x + %i * y));
407 conjugate(log(%pi + %i * y));
410 (forget(notequal(y,0)),0);
414 /* Test for bug (conjugate of atan) fixed by CVS revisions 1.9 and 1.11 */
419 /* Bug ID: 2886564 - conjugate(atan2(y,x)) not simplified */
421 conjugate(atan2(y,x));
424 (declare(z,complex), conjugate(signum(z)));
425 signum(conjugate(z))$
427 (remove(z,complex),0);