MATLAB: How to solve tan(x)=x

may i ask how to solve tan(x)=x in matlab

May I ask how to solve tan(x)=x in matlab?

Best Answer

tanxx = @(x) tan(x)-x;
for a = -1:1
xs = fzero(tanxx, a)
end
Related Question