How to do this trigonometric calculation with Mathematica or Wolframalpha? $$\frac{\sin a+\sin b}{\sin \left( a+b \right)}=m,\frac{\cos a-\cos b}{\sin \left( a-b \right)}=n,a\pm b\ne k\pi ,k\in \mathcal{Z} \\ \mathrm{Calculate}: \sin \frac{a+b}{2}$$
I have tried Solve[{(sin[a]+sin[b])/sin[a+b]=m, (cos[a]+cos[b])/sin[a-b]=n}, {sin[(a+b)/2]}] but it gives errors:
Set::write: Tag Times in 2 (sin[a]+sin[b]) is Protected. Set::write: Tag Times in (cos[a]+cos[b])/sin[a-b] is Protected. Solve::naqs: m&&n is not a quantified system of equations and inequalities. Update: After correcting the most obvious "sins" I got to:
Solve[{(Sin[a] + Sin[b])/Sin[a + b] == m, (Cos[a] - Cos[b])/Sin[a - b] == n}, {Sin[(a + b)/2]}] It still returns no result. The thing is I have solved this exercise manually on paper and I want to use Mathematica to verify it, this is the actual goal... the result I got on paper is $$\frac{\pm \boldsymbol{mn}}{\sqrt{\boldsymbol{m}^{\boldsymbol{2}}\boldsymbol{n}^{\boldsymbol{2}}+\boldsymbol{1}}}$$ I have tried this:
SolveAlways[(Sin[a]+Sin[b])/Sin[a+b]==m &&(Cos[a]+Cos[b])/Sin[a-b]==n && Sin[(a+b)/2]== \[PlusMinus] (m n)/Sqrt[m m n n+1] ,{a,b}] but it simply returns SolveAlways[Csc[a+b] (Sin[a]+Sin[b])==m&&(Cos[a]+Cos[b]) Csc[a-b]==n&&Sin[(a+b)/2]==±(m n)/Sqrt[1+m^2 n^2],{a,b}] so I guess it is confused by the input


Sininstead ofsin, and==for equations instead of=... After that, please edit your question if you still encounter problems. $\endgroup$=(should be==) $\endgroup$