Maxima : how to do formal calculations with complex numbers?
complex-numbers, maxima
Solution
You can declare a variable complex:
(%i1) declare(x, complex) $
(%i2) conjugate(x);
(%o2) conjugate(x)
(%i3) conjugate(realpart(x));
(%o3) realpart(x)
Problem
I am new to Maxima and I can't find in the documentation how to do formal calculation on complex numbers. When I use unspecified variables, Maxima seems to assume that they are real : conjugate(x) returns x for instance. Is there anyway to solve this issue ? Thanks in advance.