フィルターのクリア

How can I solve it ?? Help please

1 回表示 (過去 30 日間)
Melika Eft
Melika Eft 2020 年 11 月 5 日
コメント済み: Melika Eft 2020 年 11 月 5 日
How can I solve this Equation Sin(2t)-3t=3t-cos(t) without using ((solve)) Thank you

回答 (3 件)

KSSV
KSSV 2020 年 11 月 5 日
syms t
eqn = sin(2*t)-6*t+cos(t)==0 ;
s = solve(eqn,t)
Warning: Unable to solve symbolically. Returning a numeric solution using vpasolve.
s = 
0.23845729337266814001123439439291

Ameer Hamza
Ameer Hamza 2020 年 11 月 5 日
編集済み: Ameer Hamza 2020 年 11 月 5 日
You said without using ((solve)). Try fzero()
f = @(t) sin(2*t)-3*t-3*t+cos(t)
t_sol = fzero(f, 0)
Result
>> t_sol
t_sol =
0.2385
This solution does not require any additional toolbox.
  1 件のコメント
Melika Eft
Melika Eft 2020 年 11 月 5 日
Thank you 🙏🏻

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


KSSV
KSSV 2020 年 11 月 5 日
f = @(t) sin(2*t)-6*t+cos(t) ;
t = linspace(0,1,10^6) ;
y = f(t) ;
t0 = t(abs(y)<=10^-6)
t0 = 0.2385
  1 件のコメント
Melika Eft
Melika Eft 2020 年 11 月 5 日
Thank you

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

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by