필터 지우기
필터 지우기

How to solve hyperbolic function ratio equation

조회 수: 5 (최근 30일)
ld ld
ld ld 2021년 8월 23일
댓글: Wan Ji 2021년 8월 23일
find x from the following equation
( y/z ) = (tanh x)/(tanh (x/z))
evaluate x from the following equation if 'y' and 'z' are known.

답변 (1개)

Wan Ji
Wan Ji 2021년 8월 23일
you can solve it with symbolic expression
syms z x y
eq = y/z - tanh(x)/tanh(x/2);
sol = solve(eq, x, 'ReturnConditions',true);
x = sol.x
% conds = sol.conditions % see conditions
x equals to
x =
log((z + (-y*(y - 2*z))^(1/2))/(y - z)) + pi*k*2i
log((z - (-y*(y - 2*z))^(1/2))/(y - z)) + pi*k*2i
where k is an integer.
  댓글 수: 1
Wan Ji
Wan Ji 2021년 8월 23일
Given y=1, z=2, k=0, evalute x as
x =[ log((z + (-y*(y - 2*z))^(1/2))/(y - z)); ...
log((z - (-y*(y - 2*z))^(1/2))/(y - z))];
x = subs(x, [y,z],[1,2])
Then
x0 =
log(- 3^(1/2) - 2)
log(3^(1/2) - 2)

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

카테고리

Help CenterFile Exchange에서 Mathematics and Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by