Azzera filtri
Azzera filtri

How to solve hyperbolic function ratio equation

5 visualizzazioni (ultimi 30 giorni)
ld ld
ld ld il 23 Ago 2021
Commentato: Wan Ji il 23 Ago 2021
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.

Risposte (1)

Wan Ji
Wan Ji il 23 Ago 2021
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 Commento
Wan Ji
Wan Ji il 23 Ago 2021
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)

Accedi per commentare.

Categorie

Scopri di più su Mathematics and Optimization in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by