matlab 绘制方程(x^2 + (9/4)y^2 + z^2 - 1)^3 - x^2z^3 - (9/80)y^2z^3 == 0 这个方程,matlab命令怎么弄?我是想画函数greatdju 您那个不行啊,返回下面的错误[x,y,z]=meshgrid(linspace(-1.5,1.5));f=@(x,y,z)(x.^2 + (9/4)*y.^2 + z
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/15 02:09:50
matlab 绘制方程(x^2 + (9/4)y^2 + z^2 - 1)^3 - x^2z^3 - (9/80)y^2z^3 == 0 这个方程,matlab命令怎么弄?我是想画函数greatdju 您那个不行啊,返回下面的错误[x,y,z]=meshgrid(linspace(-1.5,1.5));f=@(x,y,z)(x.^2 + (9/4)*y.^2 + z
matlab 绘制方程
(x^2 + (9/4)y^2 + z^2 - 1)^3 - x^2z^3 - (9/80)y^2z^3 == 0
这个方程,matlab命令怎么弄?
我是想画函数
greatdju 您那个不行啊,返回下面的错误
[x,y,z]=meshgrid(linspace(-1.5,1.5));
f=@(x,y,z)(x.^2 + (9/4)*y.^2 + z.^2 - 1).^3 - x.^2.*z.^3 - (9/80)*y.^2.*z.^3;
p=patch(isosurface(x,y,z,f(x,y,z),0)); view(3);axis equal
set(p,'FaceVertexCData',jet(size(get(p,'faces'),1)) ,'FaceColor','flat','EdgeColor','none');
f=@(x,y,z)(x.^2 + (9/4)*y.^2 + z.^2 - 1).^3 - x.^2.*z.^3 - (9/80)*y.^2.*z.^3;
|
Error:"identifier" expected,"(" found.
matlab 绘制方程(x^2 + (9/4)y^2 + z^2 - 1)^3 - x^2z^3 - (9/80)y^2z^3 == 0 这个方程,matlab命令怎么弄?我是想画函数greatdju 您那个不行啊,返回下面的错误[x,y,z]=meshgrid(linspace(-1.5,1.5));f=@(x,y,z)(x.^2 + (9/4)*y.^2 + z
你到底是想解方程还是画隐函数图像啊,解方程用
x=solve('(x^2 + (9/4)*y^2 + z^2 - 1)^3 - x^2*z^3 - (9/80)*y^2*z^3')
画图用
[x,y,z]=meshgrid(linspace(-1.5,1.5));
f=@(x,y,z)(x.^2 + (9/4)*y.^2 + z.^2 - 1).^3 - x.^2.*z.^3 - (9/80)*y.^2.*z.^3;
p=patch(isosurface(x,y,z,f(x,y,z),0)); view(3);axis equal
set(p,'FaceVertexCData',jet(size(get(p,'faces'),1)) ,'FaceColor','flat','EdgeColor','none');
solve('(x^2 + (9/4)*y^2 +z^2-1)^3-x^2*z^3-(9/80)*y^2*z^3=0','x')
可以求得:
ans =
1/30/(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518...
全部展开
solve('(x^2 + (9/4)*y^2 +z^2-1)^3-x^2*z^3-(9/80)*y^2*z^3=0','x')
可以求得:
ans =
1/30/(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)*(-15*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)*(135*y^2*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)-(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(2/3)-1200*z^3-60*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)+60*z^2*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)))^(1/2)
-1/30/(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)*(-15*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)*(135*y^2*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)-(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(2/3)-1200*z^3-60*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)+60*z^2*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)))^(1/2)
1/60/(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)*(-30*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)*(270*y^2*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)+(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(2/3)+1200*z^3-120*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)+120*z^2*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)-i*3^(1/2)*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(2/3)+1200*i*3^(1/2)*z^3))^(1/2)
-1/60/(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)*(-30*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)*(270*y^2*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)+(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(2/3)+1200*z^3-120*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)+120*z^2*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)-i*3^(1/2)*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(2/3)+1200*i*3^(1/2)*z^3))^(1/2)
1/60/(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)*(-30*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)*((-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(2/3)+1200*z^3-120*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)+270*y^2*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)+120*z^2*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)+i*3^(1/2)*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(2/3)-1200*i*3^(1/2)*z^3))^(1/2)
-1/60/(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)*(-30*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)*((-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(2/3)+1200*z^3-120*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)+270*y^2*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)+120*z^2*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(1/3)+i*3^(1/2)*(-230850*y^2*z^3+108000*z^3-108000*z^5+150*(-76800*z^9+2368521*y^4*z^6-2216160*y^2*z^6+2216160*y^2*z^8+518400*z^6-1036800*z^8+518400*z^10)^(1/2))^(2/3)-1200*i*3^(1/2)*z^3))^(1/2)
收起