how would i find a postive root
2 views (last 30 days)
Show older comments
adriana resendez on 4 Mar 2015
Answered: Giorgos Papakonstantinou on 4 Mar 2015
func = @(x) tanh(2*x)/(2*x) = 0.7
Giorgos Papakonstantinou on 4 Mar 2015
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
Find more on Language Fundamentals in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!