I'd love to reverse the effect of "rectform", as below.
However, I don't want to have to type in "realpart(z)=(z+conjugate(z))/2", etc., for every single complex variable.
Any thoughts?
Maxima 5.28.0-2 http://maxima.sourceforge.net
using Lisp GNU Common Lisp (GCL) GCL 2.6.8 (a.k.a. GCL)
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) declare(z,complex);
(%o1) done
(%i2) z,rectform;
(%o2) realpart(z) + %i imagpart(z)
(%i3) %,realpart(z)=(z+conjugate(z))/2,imagpart(z)=(z-conjugate(z))/2/%i;
conjugate(z) + z z - conjugate(z)
(%o3) ---------------- + ----------------
2 2
(%i4) %,expand;
(%o4) z
(%i5)