hey guys, does anyone know how to solve this: to isolate n
cos^n(0.18)=sqrt(2)
thanks

6 件のコメント

Torsten
Torsten 2022 年 5 月 10 日
Hint: Take log on both sides.
Miguel Albuquerque
Miguel Albuquerque 2022 年 5 月 10 日
I know the simplified solution, is there anyway to do log of base cos(x) in matlab?
Torsten
Torsten 2022 年 5 月 10 日
What is the "simplified solution" ?
You can take logs to any basis on both sides and get the correct solution:
n * log10(cos(0.18)) = log10(sqrt(2))
n * log(cos(0.18)) = log(sqrt(2))
n * log2(cos(0.18)) = log2(sqrt(2))
and so on.
Miguel Albuquerque
Miguel Albuquerque 2022 年 5 月 10 日
編集済み: Miguel Albuquerque 2022 年 5 月 10 日
n=real((1/2*log10(2))/(log10(cos(n))));
This is the answer by simplifying the equation
Torsten
Torsten 2022 年 5 月 10 日
Can't you solve these equations for n ?
n * log10(cos(0.18)) = log10(sqrt(2))
n * log(cos(0.18)) = log(sqrt(2))
n * log2(cos(0.18)) = log2(sqrt(2))
Miguel Albuquerque
Miguel Albuquerque 2022 年 5 月 10 日
yes I can

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

 採用された回答

KSSV
KSSV 2022 年 5 月 10 日

0 投票

syms n
eqn = cos(0.8)^n == sqrt(2) ;
s = solve(eqn,n)
s = 
vpa(s)
ans = 

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSymbolic Math Toolbox についてさらに検索

製品

リリース

R2021b

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by