Using fsolve in Matlab to Solve a System of Trigonometric Equations

  • Thread starter Thread starter yellowsubmari
  • Start date Start date
  • Tags Tags
    System
yellowsubmari
Messages
2
Reaction score
0
Hello, would you tell me how to solve this system via Matlab:


sin(X1)+sin(X2)+sin(X3)+...+sin(Xn)=A
sin(2X1)+sin(2X2)+sin(2X3)+...+sin(2Xn)=B
sin(3X1)+sin(3X2)+sin(3X3)+...+sin(3Xn)=C
.
.
.
sin(nX1)+sin(nX2)+sin(nX3)+...+sin(nXn)=Z


where Х1,Х2,Х3,...,Хn=?
A,B,C,...,Z are numerical values,
n=24.

Thanks in advance.

P.S. I was told to use "fsolve" in Matlab, but I'm not familiar with this function. Help me, please in coding, or in solving with another method in Matlab.
 
Physics news on Phys.org
ideas?
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top