24小时热门版块排行榜    

查看: 294  |  回复: 0

石皮日尧

银虫 (初入文坛)

[求助] 求大神看看代码出现了什么问题

R2=36.75;R3=35;V=9;d=5;y=43*pi/180;
t=acos((R2^2+d^2-R3^2)/(2*R2*d));
x=acos((R3^2+d^2-R2^2)/(2*R3*d));
syms h
V1=pi*R3^2*h*(pi-x)/pi;
V2=d*R2*sin(t)*h;
V3=(pi*R2^3*tan(y)/3-pi*(R2-h*cot(y))^3*tan(y)/3)*t/pi;
H=solve('V1+V2+V3=9');
h=double(H);
出现
??? Error using ==> mupadmex
Error in MuPAD command: DOUBLE cannot convert the input expression into a double array.

If the input expression contains a symbolic variable, use the VPA function instead.

Error in ==> sym.sym>sym.double at 936
            Xstr = mupadmex('symobj::double', S.s, 0);
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 石皮日尧 的主题更新
信息提示
请填处理意见