Numerical solution to a larger equation.

1 回表示 (過去 30 日間)
Prasenjit Dewanjee
Prasenjit Dewanjee 2023 年 4 月 4 日
コメント済み: Dyuman Joshi 2023 年 4 月 5 日
Hi!
I have a very large and complicated equation:
sinh(5.9605e-08*(((1.1259e+15*lamda2^2 + 7.5126e+15)^2)^(1/2) + 7.5126e+15)^(1/2))*sin(2*lamda2)*(lamda2^2 + 8.8818e-16*((1.1259e+15*lamda2^2 + 7.5126e+15)^2)^(1/2) + 6.6725)=0
I need to solve for lamda2. Matlab is unable to solve this. I am getting only 0 as answer. It should not be zero.
Any help will be appreciated.
  1 件のコメント
Dyuman Joshi
Dyuman Joshi 2023 年 4 月 5 日
"Matlab is unable to solve this."
What makes you think so? How did you try to solve it?
"It should not be zero."
Why not? Zero is a root to the equation.
There are infinite solutions to the equation as mentioned by @Alex Sha below, Which other values do you want as the solution?

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

回答 (1 件)

Torsten
Torsten 2023 年 4 月 5 日
編集済み: Torsten 2023 年 4 月 5 日
What is the zero of your choice ?
fun = @(lamda2)sinh(5.9605e-08*(((1.1259e+15*lamda2^2 + 7.5126e+15)^2)^(1/2) + 7.5126e+15)^(1/2))*sin(2*lamda2)*(lamda2^2 + 8.8818e-16*((1.1259e+15*lamda2^2 + 7.5126e+15)^2)^(1/2) + 6.6725);
lamda2 = -3.2:0.001:3.2;
flamda2 = arrayfun(@(lamda)fun(lamda),lamda2);
plot(lamda2,flamda2)
grid on
  2 件のコメント
Alex Sha
Alex Sha 2023 年 4 月 5 日
There are infinite solutions (including 0):Lamda2 = n*pi,where n=[...,-5,-4,-3,-2,-1,0,1,2,3,4,5,...]
Torsten
Torsten 2023 年 4 月 5 日
You are correct, I missed the sin(2*lamda2) term. So lamda2 = n/2 * pi (n integer) are roots of the function.

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

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by