Trigonometric equation mystery?
Show older comments
Can someone please explain the different results:
syms x
eqn = 2*cos(2*x) - 2*cos(-2*x + 60) == 0;
soln = solve(eqn,x)
OUTPUT
soln =
15
------- AND (using the identity: cos(α – β) = cos(α) cos(β) + sin(α) sin(β)) -------
syms x
eqn = 2*cos(2*x) - 2*(0.5*cos(2*x) + (sin(2*x)*0.8660)) == 0;
soln = solve(eqn,x)
OUTPUT
soln = -(log(-(499956/249989 + 866000i/249989)^(1/2)/2)*1i)/2 -(log((499956/249989 + 866000i/249989)^(1/2)/2)*1i)/2
Thanks,
Oz
Accepted Answer
More Answers (1)
Oz
on 15 Apr 2017
0 votes
Categories
Find more on Complex Numbers 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!