Plot roots of non-linear equation
1 次查看(过去 30 天)
显示 更早的评论
How can I show (in the graph) the roots of non-linear equation below,
0 个评论
回答(1 个)
Image Analyst
2020-4-5
编辑:Image Analyst
2020-4-5
Did you try the plot() function?
x = linspace(-30, 40, 1000);
fx = (x .^ 2 ./ (x+1)) .^ 0.3333333;
plot(x, fx, 'b-', 'LineWidth', 2);
grid on;
xlabel('x', 'FontSize', 15);
ylabel('fx', 'FontSize', 15);
As you can see it hits 0 only at 0 and like Star says, there are other complex roots.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!