Hello,
I am working on solving two equations simultaneously using the 'solve' command with the 'ReturnConditions'. One equation is a 6th order and another a 4th order polynomial. I am also using the 'MaxDegree' command but still the answer comes out in the form of z. Following are my code:
syms alpha1 alpha2 sigma1 sigma2 mu1 mu2 w1 w2 omega eps f2
syms a1 a2 positive
eqn1=(-3*a1*(sigma1+sigma2)).^2+(mu1.*a1).^2-(1/(8*w1)*alpha1*a2.^3).^2==0;
eqn2=(mu2.*a2).^2+(-a2.*sigma1).^2-(1/(2*w2)*f2).^2==0;
s1=(omega-w2)./eps;
s2=(w2-1/3*w1)./eps;
eq1=subs(eqn1,[sigma1, sigma2],[s1, s2]);
eq2=subs(eqn2,[sigma1, sigma2],[s1, s2]);
sol=solve([eq1,eq2],[a1,a2],'MaxDegree',3,'ReturnConditions',true);
a1_sol=sol.a1;
a2_sol=sol.a2;
For sol.a1, there's 9 symbolic solution, among them 3 are just 'x'. Could anyone be able to explain what this 'x' is ? One of the answers of a1_sol also yields the following z term,
-(alpha1*eps*z^3*(eps^2*mu1^2 + 9*omega^2 - 6*omega*w1 + w1^2)^(1/2))/(8*(eps^2*mu1^2*w1 + 9*omega^2*w1 - 6*omega*w1^2 + w1^3))
I was hoping if anyone can suggest an approach to resolve this issue. I really appreciate the help.
Anika
0 Comments
Sign in to comment.