0
Follow
0
View

Let's solve for the eigenvalue of tanx is equal to x

cuiliang521 注册会员
2023-02-28 20:05


syms x n
eq = tan(x^n) == x^n;  % 定义方程
sol = solve(eq, x);  % 求解方程的解

Running this code will yield the solution to the symbolic equation, where sol is a vector containing the symbolic solution.

For the eigenvalue of the equation tan(x) = x, it can be solved using the following code:

fun = @(x) tan(x) - x;  % 定义函数
x0 = 1;  % 选定初始点
x = fzero(fun, x0);  % 求解函数的零点


Running the code will yield a numerical solution to the equation. It should be noted that for an equation where tan(x) = x, there may be more than one solution, so care needs to be taken to choose the appropriate initial point in order to solve the desired solution.

About the Author

Question Info

Publish Time
2023-02-28 20:05
Update Time
2023-02-28 20:05

Related Question

error during artifact deployment,see server log for detail

报错: x and y must be the same size

如何阻止(c)成为Xamarin.Forms的版权©?

WindowsForm串口回传数据类型转换

在form_valid中为UpdateView获取原始对象值?

为数据帧创建一个for循环,以减去日期并将其放入变量中

如何在discord.js embed [closed]中执行forEach循环

IsUpdateable返回false salesforce

用Fortran读取气象报文的风速

Xamarin Android AndroidX.Core.Content.FileProvider.GetUriForFile NullReferenceException