trigonometric equation with one unknown

I have an equation with two unknowns. I want to find the value of "y" by substituting the value of "x" in the equation. I tried to solve it with 'vpasolve' command but I got no result. The way I tried to solve was as follows:
clear;
clc;
clear all;
syms x y
x=0.35
eq=cosh(x*y)*sin(y) - cos(x*y)*sinh(x*y)*cos(x*(y - 1)))==0;
s=vpasolve(eq,y)
How can I get solution? Thanks in advance!

Respuestas (1)

Star Strider
Star Strider el 2 de Oct. de 2020
In R2020b, using random initial estimates returns non-zero results:
syms x y
x=0.35;
eq=cosh(x*y)*sin(y) - cos(x*y)*sinh(x*y)*cos(x*(y - 1))==0;
for k = 1:25
s(k,:)=vpasolve(eq,y,'Random',1);
end
producing (in this run):
s =
15.480171382812595145288426013123
34.094383087282412764257381041731
-119.50839519446003898426906181622
-210.5162277384404742007204047959
27.022200096669961685927978045919
...
They all appear to be unique.
Also:
s=vpasolve(eq,y,42)
consistently returns:
s =
40.870969064911607837111227584452
.

1 comentario

Alan Stevens
Alan Stevens el 2 de Oct. de 2020
By plotting the function you can see that there are going to be an infinite number of solutions:

Iniciar sesión para comentar.

Categorías

Más información sobre Mathematics en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 2 de Oct. de 2020

Comentada:

el 2 de Oct. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by