how to solve a trigonometric equations

3 Ansichten (letzte 30 Tage)
berkan sönmez
berkan sönmez am 16 Mai 2019
Kommentiert: KSSV am 16 Mai 2019
f(x)=1+cosh^2(x)+2*cos(x)*cosh(x)-sinh^2(x)=0
how can i solve this equation.Adsız.png
  1 Kommentar
KSSV
KSSV am 16 Mai 2019
Copy your code.....not an image snippet.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Bjorn Gustavsson
Bjorn Gustavsson am 16 Mai 2019
If you are a matlab-beginner I suggest you read through the getting started-type documentation, that you work yourself through demos and browse through the help.
To solve these kind of equations you can go, at least, 2 ways either try to solve the equation symbolically, or numerically.
If you try for analytical solutions you have to declare your variable to be symbolic:
sym x
% then maybe you can get a set of solutions to the equation:
X_sol = solve(0==1 + cosh(x)^2 + 2*cos(x)*cosh(x)-sinh(x));
If that fails you'll have to resort to numerical solutions. Have a look at fsolve:
help fsolve
HTH

Community Treasure Hunt

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

Start Hunting!

Translated by