Should solve try and equate realparts and imaginary parts of equations?
Subject: Should solve try and equate realparts and imaginary parts of equations?
From: Rob Frohne
Date: Tue, 11 Dec 2007 23:52:15 -0800
Hi,
I'm playing with Maxima and complex equations and am wondering why solve
doesn't break up the complex equation into its real and imaginary parts.
For example:
(%i61) declare(C,real);
(%o61) done
(%i62) declare(L,real);
(%o62) done
(%i63) 50=1/(1/600+%i*2*%pi*10000000*C)+%i*2*%pi*10000000*L;
(%o63) 50=20000000*%i*%pi*L+1/(20000000*%i*%pi*C+1/600)
(%i64) solve([%], [L,C]);
(%o64) [[L=-(12000000000*%i*%pi*%r6-11)/(4800000000000000*%pi^2*%
r6-400000*%i*%pi),C=%r6]]
(%i65) 50=1/(1/600+%i*2*%pi*10000000*C)+%i*2*%pi*10000000*L;
(%o65) 50=20000000*%i*%pi*L+1/(20000000*%i*%pi*C+1/600)
(%i66) solve([imagpart(%),realpart(%)],[L,C]);
(%o66) [[L=-sqrt(11)/(400000*%pi),C=-sqrt(11)/(12000000000*%
pi)],[L=sqrt(11)/(400000*%pi),C=sqrt(11)/(12000000000*%pi)]]
It appears that the result in (%i66) is a lot more what I was hoping
for. Shouldn't we get the same thing in (%i64)? What do you think?
Why or why not?
Thanks,
Rob