[Math] Solving a system of non-linear (trig) equations:

nonlinear optimizationnonlinear systemtrigonometry

I am having trouble trying to solve the following equations:

$\sin(\alpha)+\sin(\beta)=\dfrac {1000} A$

$\sin(\alpha)+\sin(\gamma)=\dfrac {800} A$

$\dfrac {20(1+\cos(\alpha-\beta))} {\cos(\beta)} -\dfrac {20(1+\cos(\alpha-\gamma))} {\cos(\gamma)}-.225=0$

I tried plugging into MatLab using fsolve() and it gave me values that do not solve the all three of the equations. Trying to expand in a taylor series gets really ugly really fast. So does anyone have any advice on how to solve these. Thanks

Best Answer

Its likely that the fsolve isn't working in matlab because you're initial guess isn't close enough, causing the optimization software to get stuck. If you try starting with some values that approximate the answer you want, you might get an exact answer from matlab.

Some values that worked for me were

$A = 4000$

$\alpha = 13^\circ$

$\beta = -3^\circ$

$\gamma = -3^\circ$

hope this helps.

Related Question