3= 2*(e^x - e^-x)
古いコメントを表示
How to solve this equation to find x? Thanks in advance
採用された回答
その他の回答 (4 件)
Torsten
2017 年 12 月 21 日
Substitute
e^x = y.
This leads to
y - 1/y = 3/2
or
y^2 - 3/2*y - 1 = 0.
Thus
y = 3/4 + sqrt(25/16) = 2.
Then
x = log(y) = log(2).
Or use
xsol = solve(3==2*(exp(x)-exp(-x)),x)
Best wishes
Torsten.
Star Strider
2017 年 12 月 21 日
Much simpler, because your equation is equivalent to 4*sinh(x):
xarg = @(y) asinh(y/4)
Result = xarg(3)
Result =
0.693147180559945
Even the anonymous function is not necessary. I added it to convenience.
Image Analyst
2017 年 12 月 21 日
0 投票
Try the fzero() function.
Mohammad Sulaiman Stanekzai
2017 年 12 月 24 日
0 投票
カテゴリ
ヘルプ センター および File Exchange で Numeric Solvers についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!