how would i find a postive root

1 回表示 (過去 30 日間)
adriana resendez
adriana resendez 2015 年 3 月 4 日
func = @(x) tanh(2*x)/(2*x) = 0.7

回答 (1 件)

Giorgos Papakonstantinou
Giorgos Papakonstantinou 2015 年 3 月 4 日
One way to find the roots is described here. You can then exclude all the non-positive.
Quickly you can do this:
func = @(x) tanh(2.*x)./(2.*x) -0.7
fzero(func, 1)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by