how would i find a postive root

조회 수: 1 (최근 30일)
adriana resendez
adriana resendez 2015년 3월 4일
답변: Giorgos Papakonstantinou 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 CenterFile Exchange에서 Octave에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by