Solution of 1 equation with 2 unknown variables

3 次查看(过去 30 天)
How to find the solution of the equation using MATLAB?
[ In words, cos hyperbolic of x divided by cos hyperbolic of y is equal to 1 divided by 2 ]

采纳的回答

Ameer Hamza
Ameer Hamza 2020-11-26
编辑:Ameer Hamza 2020-11-26
A single equation with two variable can have an infinite number of solutions. You need to fix atleast one value. For example
y = 1.5;
x = acosh(cosh(y)*1/2)
In this case you have an expression for the solution of 'x' in term of 'y'. In general case, you can use fzero() or fsolve()
y = 1.5;
fzero(@(x) cosh(x)/cosh(y)-1/2, rand())

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by