why Solve function does not give correct solution?
显示 更早的评论
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!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Assumptions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!






