How to solve hyperbolic equation with ratio?

조회 수: 1 (최근 30일)
ld ld
ld ld 2021년 8월 23일
답변: David Goodmanson 2021년 9월 1일
Find out x in following equation in which 'y' and 'z' are known.
( y/z ) = (tanh x)/(tanh (x/z))
evaluate x from the following equation if 'y' and 'z' are known.
  댓글 수: 2
Yazan
Yazan 2021년 8월 23일
Is this a Matlab-related question?
ld ld
ld ld 2021년 9월 1일
yes it is related to it.
Even if it can be solved without matlab, it would be ok.

댓글을 달려면 로그인하십시오.

답변 (1개)

David Goodmanson
David Goodmanson 2021년 9월 1일
Hi L^2,
It never hurts to make a plot. Assume for the moment that z >1. Calling the right hand side of the equation f(x), then f(x) is a symmetric function with a peak around x=0, and 1 < f(x) < z. y/z has to fall within that range in order to have a real solution. There are similar results for z <1 and for negative z.
x = -40:.01:40;
z = 4;
y = 10;
f = @(x) tanh(x)./tanh(x/z)
g = @(x) f(x) - y/z;
x0 = fzero(g,[.001 20]) % root = 1.5252
figure(1);grid on
plot(x,f(x),x0,f(x0),'o',x,(y/z)*ones(size(x)))

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by