Taking a lot of time to solve an expression

1 回表示 (過去 30 日間)
SEPIDEH
SEPIDEH 2015 年 10 月 18 日
回答済み: dpb 2015 年 10 月 18 日
Hi,
I want to get the value for y from this expression: 3.591*(y)*(1-y)^0.77=0.125.
I wrote it in mutable like: solve('3.591*(y)*(1-y)^0.77=0.125') But it shows me more than 20 min busy sign in the left bottom side of the interface.
Do you know where is the problem? Do you have any suggestion?
Looking forward to hearing from you. Best Sepideh
  1 件のコメント
SEPIDEH
SEPIDEH 2015 年 10 月 18 日
It seems that my matlab is not able to calculate this expression, still is busy! why?

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

採用された回答

dpb
dpb 2015 年 10 月 18 日
Don't have the symbolics so "know nuthink!" on that side but
>> fn=@(y) 3.591*y*(1-y)^0.77-0.125;
>> yz=fsolve(fn,0.5)
Equation solved.
fsolve completed because the vector of function values is near zero
as measured by the default value of the function tolerance, and
the problem appears regular as measured by the gradient.
<stopping criteria details>
yz =
0.0358
>> fn(yz)
ans =
-1.5015e-10
>>

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by