How to solve a logarithmic equation?

I need to solve the equation 7X*log(X)-2=0 in matlab where 0<X<1. How such equations are solved through MATLAB? I have used fsolve single variable and there was no answer with an error message of: Optimization running. Objective function value: 0.0 Zero find terminated.

回答 (2 件)

Torsten
Torsten 2017 年 10 月 24 日
編集済み: Torsten 2017 年 10 月 24 日

2 投票

X = exp(lambertw(2/7))
Plot the function and you will see that there is no root for 0<X<1.
Best wishes
Torsten.

3 件のコメント

Hanif Malekpoor
Hanif Malekpoor 2017 年 10 月 24 日
Actually there is a root for this function near 0.64
Torsten
Torsten 2017 年 10 月 24 日
Jan
Jan 2017 年 10 月 24 日
There is a root for @(x) real(7*X*log(X)-2) at -0.6398364478 and one at 1.255537045

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

Jan
Jan 2017 年 10 月 24 日
編集済み: Jan 2017 年 10 月 24 日

0 投票

No, no root here:
x = linspace(0,1,1000);
plot(x, 7 * x .* log(x) - 2);
Of course this is not a proof. But you can show easily, that 7*x*log(x) is smaller than 0 inside [0,1] such that subtracting 2 can never lead to a 0.

カテゴリ

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

質問済み:

2017 年 10 月 24 日

コメント済み:

Jan
2017 年 10 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by