matlab 解方程+画图

2*tan(0.5*sqrt(8*x^2-y^2))/(sqrt(8*x^2-y^2))-tan(sqrt(x^2-y^2))/sqrt(x^2-y^2)=0,如何画出x-y的图形?
2026年09月23日 17:43
有2个网友回答
网友(1):

直接用ezplot函数即可!

 ezplot('2*tan(0.5*sqrt(8*x^2-y^2))/(sqrt(8*x^2-y^2))-tan(sqrt(x^2-y^2))/sqrt(x^2-y^2)=0',[-10,10]) 

希望能解决你的问题!

网友(2):

我是在MALTAB符号计算工具箱中绘制的:

在MATLAB命令窗口:mu=mupad;

然后在打开的notebook中输入下面的内容:

f:=(x,y)->2*tan(0.5*sqrt(8*x^2-y^2))/(sqrt(8*

x^2-y^2))-tan(sqrt(x^2-y^2))/sqrt(x^2-y^2);

plot(plot::Implicit2d(f(x,y),x=-1..10,y=-2..10))

产生的图形如下: