matlab解一个二元方程组为何出现错误.
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/11/09 05:47:51
matlab解一个二元方程组为何出现错误.
方程组为
0.0231=d+p
0.0284=0.0231+0.0719-2.*(d.*0.0215).^0.5-2.*(p.*0.0504).^0.5
用matlab求解为何提示错误
[d,p]= solve('0.0231=d+p','0.0284=0.0231+0.0719-2.*(d.*0.0215).^0.5-2.*(p.*0.0504).^0.5','d','p')
我用
ezplot('-0.0284+0.0231+0.0719-2.*(d.*0.0215).^0.5-2.*(p.*0.0504).^0.5',[-0.05 0.05])
hold on
ezplot('-0.0231+d+p',[-0.05 0.05])
看应该是有一解的
求高手指点
方程组为
0.0231=d+p
0.0284=0.0231+0.0719-2.*(d.*0.0215).^0.5-2.*(p.*0.0504).^0.5
用matlab求解为何提示错误
[d,p]= solve('0.0231=d+p','0.0284=0.0231+0.0719-2.*(d.*0.0215).^0.5-2.*(p.*0.0504).^0.5','d','p')
我用
ezplot('-0.0284+0.0231+0.0719-2.*(d.*0.0215).^0.5-2.*(p.*0.0504).^0.5',[-0.05 0.05])
hold on
ezplot('-0.0231+d+p',[-0.05 0.05])
看应该是有一解的
求高手指点
[d,p]= solve('0.0231=d+p','0.0284=0.0231+0.0719-2*(d*0.0215)^0.5-2*(p*0.0504)^0.5','d','p')