Can someone help me how to calculate theta?
4 ビュー (過去 30 日間)
古いコメントを表示
a and b are variables calculated by measured values.
I dont know how should I define theta:
Error
Unrecognized function or variable 'theta'.
S = solve ((((a+b)*theta)/(theta^2 - (a*b))*tan_theta), theta)
5 件のコメント
Walter Roberson
2021 年 11 月 1 日
What happens if, hypothetically, theta were 0?
tan(theta) = (a+b) * theta /(theta^2 - a*b)
tan(0) is 0
0 = (a+b) * 0 / (0^2 - a*b)
0 = 0 * (a+b) /(-a*b)
if a*b is not 0 then the denominator is not 0. 0 / nonzero is 0. So left side is 0 and right side is 0.
Therefore theta = 0 is a solution whenever neither a nor b is 0.
回答 (2 件)
Uba K Ubamanyu
2021 年 10 月 28 日
try fsolve with an initial guess.
I am assuming you meant to write tan(theta) instead of tan_theta
intial_guess =1;
S = fsolve(@(theta) (((a+b)*theta)/(theta^2 - (a*b))*tan(theta)), initial_guess)
Walter Roberson
2021 年 10 月 29 日
The solution is theta = 0 unless a or b are 0.
6 件のコメント
Walter Roberson
2021 年 11 月 3 日
eqn = str2sym('tan(theta) == (894987427786373*theta)/(4503599627370496*(theta^2 - 710587193844941/72057594037927936))')
E2 = lhs(eqn) - rhs(eqn)
fplot([E2, 0], [-1 1])
参考
カテゴリ
Help Center および File Exchange で Number Theory についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!










