why Solve function does not give correct solution?
Show older comments
I use the following code to obtain the solutions, however, some given solutions do not satisfy the equations, for example, the first one.
syms a b c
eqns = [(a)+(b)+(c)==0, sin(a)==sin(b), sin(b)==sin(c)];
S = solve(eqns);
sol = [S.a,S.b,S.c]
sol =
[ (2*pi)/3, -(2*pi)/3, 0]
[-(2*pi)/3, (2*pi)/3, 0]
[ pi, 0, -pi]
[ 0, pi, -pi]
[ (2*pi)/3, (2*pi)/3, -(4*pi)/3]
[-(2*pi)/3, -(2*pi)/3, (4*pi)/3]
[ 0, 0, 0]
[ (2*pi)/3, 0, -(2*pi)/3]
[ 0, (2*pi)/3, -(2*pi)/3]
[-(2*pi)/3, 0, (2*pi)/3]
[ 0, -(2*pi)/3, (2*pi)/3]
Can anyone help? Thank you so much!
Accepted Answer
More Answers (0)
Categories
Find more on Assumptions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!





