Finding epsilon satisfy a trigonometric function.

I need to find the value of epsilon (e) that satisfy the function cot(e)^2*cot(2*e)^2 == sin(2*e)^2 where pi/4<e<pi/2

 採用された回答

sawsan
sawsan 2016 年 12 月 31 日
編集済み: Walter Roberson 2017 年 1 月 3 日

0 投票

Thanks a lot. I found the solution. I share it here if someone want to use it.
syms x
f = cot(x).^2*cot(2*x).^2 - sin(2*x).^2;
vpasolve(f,[pi/3 pi/2])
ans =
1.326722925756775867399902790294

3 件のコメント

Star Strider
Star Strider 2016 年 12 月 31 日
There are 4 solutions on the interval (-pi/2,pi/2).
Sawsan Alhowaity
Sawsan Alhowaity 2017 年 1 月 3 日
yes, but on the interval [pi/3, pi/2] there is only one solution. Thanks for replying.
Star Strider
Star Strider 2017 年 1 月 3 日
Your original Question asked for all solutions on the interval -pi/2 to pi/2.

サインインしてコメントする。

その他の回答 (2 件)

KSSV
KSSV 2016 年 12 月 27 日

1 投票

clc; clear all ;
syms e
eqn = cot(e)^2*cot(2*e)^2 == sin(2*e)^2 ;
[solx, params, conds] = solve(eqn, e, 'ReturnConditions', true) ;
Star Strider
Star Strider 2016 年 12 月 27 日

0 投票

Another approach:
trig_e = @(e) cot(e).^2*cot(2*e).^2 - sin(2*e).^2;
v = linspace(-pi/2, pi/2, 4);
for k1 = 1:length(v)
e(k1) = fzero(trig_e, v(k1));
end
e =
-1.3267e+000 -541.3248e-003 541.3248e-003 1.3267e+000

質問済み:

2016 年 12 月 27 日

コメント済み:

2017 年 1 月 3 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by