Re: Help for a basic problem



dm wrote:

Can I get a symbolic formula of x, while x satisfies a complex equation, x^3 = a+b*i, where a and b are real-valued variables?

I was trying to figure it out using x = R_x+I_x*i, but it turns out to be a very complex equation.

If no analytical solution is available, how can I get it, by numerical method?
....
X = (-SQRT(3)*(B^2+A^2)^(1/6)*
           SIN(ATAN2(B,A)/3)-(B^2+A^2)^(1/6)*
           COS(ATAN2(B,A)/3))/2+
    %I*(SQRT(3)*(B^2+A^2)^(1/6)*
           COS(ATAN2(B,A)/3)-(B^2+A^2)^(1/6)*
           SIN(ATAN2(B,A)/3))/2

X = -((B^2+A^2)^(1/6)*
           COS(ATAN2(B,A)/3)-SQRT(3)*(B^2+A^2)^(1/6)*
           SIN(ATAN2(B,A)/3))/2-
    %I*((B^2+A^2)^(1/6)*
           SIN(ATAN2(B,A)/3)+SQRT(3)*(B^2+A^2)^(1/6)*
           COS(ATAN2(B,A)/3))/2

X = (B^2+A^2)^(1/6)*
           COS(ATAN2(B,A)/3)+
    %I*(B^2+A^2)^(1/6)*
           SIN(ATAN2(B,A)/3)

by using solve() and rectform() in Macsyma.
--
Bob Walton
Email: http://bwalton.com/cgi-bin/emailbob.pl
.



Relevant Pages

  • Re: How to vectorize functions like eig()
    ... For 3x3 matrices, the analytical solution is ... numerical method can be faster than the analytical method. ... i'd like to think, though, that the optimizer ... If you're only concern is calculating eigenvalues as fast as possible, you probably need to switch to a lower level language, and use libraries that are optimized for your processor (e.g. the Intel Math Kernel Library for Intel processors). ...
    (comp.soft-sys.matlab)
  • Re: How to vectorize functions like eig()
    ... This is exactly the "for loop" I wish to avoid. ... improvement of my analytical solution vs eig() loop is about ... For 3x3 matrices, the analytical solution is ... numerical method can be faster than the analytical method. ...
    (comp.soft-sys.matlab)