how to solve non-linear transcendental equation with many roots
6 次查看(过去 30 天)
显示 更早的评论
Hi All,
I have to solve the following equation
x-(2*(sinh(x)*((cos(x)).^2+cos(x)-1)+sin(x)*(cosh(x)-1)))/((1-cos(x)*cosh(x))) =0.
It is a nonlinear with many roots, so is there any function in matlab can do it? the function fzero only return a root near a initial root value, which is not a automatic task.
Thank you.
0 个评论
回答(3 个)
Walter Roberson
2013-2-13
I suspect not, but I do not have the Symbolic Toolbox to test with. Using a different symbolic package, I find that there are an infinite number of roots, some real and some imaginary. There is no nice analytic expression for the roots.
One of the basic items repeated over and over in the forms is the root of cos(x) = x, which has no analytic solution.
The generalized solution for reals has three forms; the overall solution is the union of {0} and these three forms and three forms for the imaginary solutions. The three real forms are:
.7429621155 + 1.655668423 * B + 6.283185308 * Z
-0.7429621155 + 4.627516885 * B + 6.283185308 * Z
3.141592654 * B + 6.283185308 * Z
where B must be either 0 or 1, and Z is any arbitrary integer.
The 6.28<etc> is obviously 2*Pi, and the 3.14<etc> is obviously Pi, but the other numeric values have no obvious interpretation.
4 个评论
Walter Roberson
2013-2-14
It is possible that the above solution is incorrect; I am working through some difficulties I found with the other package.
Walter Roberson
2013-2-14
I have confirmed that the solution I showed in my Answer is incorrect, but I do not have anything worked out yet as to what the correct general solution should be.
Youssef Khmou
2013-2-13
编辑:Youssef Khmou
2013-2-13
Hi, there many ways to get solution,
You use a function Handle :
>>f=@(x) x-(2*(sinh(x)*((cos(x))^2+cos(x)-1)+sin(x)*(cosh(x)-1)))/(1-cos(x)*cosh(x))
>>y=fsolve(f,10e-3)
'fsolve' starts at x0=10e-3 and tries to solve the equation , you can verify the solution :
>>f(y)
-2.0334e-009
This helps ?
Youssef Khmou
2013-2-13
2nd answer :
You can use " solve" with symbolic variable :
syms x
y=x-(2*(sinh(x)*((cos(x))^2+cos(x)-1)+sin(x)*(cosh(x)-1)))/((1-cos(x)*cosh(x)))
z=solve(y) .
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!