The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Matlab fail to found symbolic equation system solution, why?
Replies: 3   Last Post: Jul 31, 2013 11:39 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 4
Registered: 6/28/13
Matlab fail to found symbolic equation system solution, why?
Posted: Jun 28, 2013 6:39 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Dear friends,

I need help to solve a symbolic equation system, four equations and four variables, seems simple, but does not work. See the code:

%Declare 4 real symbolic variables ...

%Declara the symbolic 2x2 matrix R ...
R = ...
[exp(a0*i)*exp(-(a1*i)/2)*exp(-(a3*i)/2)*(exp(-(a2*i)/2)/2 + exp((a2*i)/2)/2), ...
-exp(a0*i)*exp(-(a1*i)/2)*exp((a3*i)/2)*((exp(-(a2*i)/2)*i)/2 - (exp((a2*i)/2)*i)/2); ...
exp(a0*i)*exp((a1*i)/2)*exp(-(a3*i)/2)*((exp(-(a2*i)/2)*i)/2 - (exp((a2*i)/2)*i)/2), ...
exp(a0*i)*exp((a1*i)/2)*exp((a3*i)/2)*(exp(-(a2*i)/2)/2 + exp((a2*i)/2)/2)];

%Generating a sample matrix L ...
L = subs(R, [a0 a1 a2 a3], [pi/7 pi/5 pi/3 pi])

L =
0.1162 - 0.8582i 0.0671 - 0.4955i
0.3455 - 0.3614i -0.5985 + 0.6260i

However, the matlab does not found solution to R == L, see:

>> solve(R == L)
Warning: Explicit solution could not be found.
> In solve at 169

ans =
[ empty sym ]

Why the solution [pi/7 pi/5 pi/3 pi] isn't found? How do it correctly?

Best regards,

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.