怎样使用matlab解下面的代数方程?急急。。。。。

symsabcde;2*b^2=a^2+c^2+d^2-d*((4*r^2-y^2)^(1/2)*cos(e)+y*sin(e))-2*c*d*((r^2-d^2*(co... syms a b c d e;
2*b^2=a^2+c^2+d^2-d*((4*r^2-y^2)^(1/2)*cos(e)+y*sin(e))-2*c*d*((r^2-d^2*(cos(e))^2)^(1/2)*cos(e)+d*cos(e)*sin(e))/r+c*((4*r^2-y^2)^(1/2)* (r^2-d^2*(cos(e))^2)^(1/2)+y*d*cos(e)) ;
Solve(y,r)
我想将上面的方程写成y=f(r)的形式,其他的都安已知量计算。但是为什么总出错呢?请教那位大哥帮小弟解一下。谢谢了
我的目的是将此方程化简写成y=f(r)的形式。谢谢大家帮忙解决一下谢谢了
展开
子子花界快717
2008-08-10 · TA获得超过178个赞
知道答主
回答量:63
采纳率:0%
帮助的人:36.7万
展开全部
这个答案不就是y=f(r)的形式吗?只是比较长而已。。。
可以这样解决:
syms a b c d e;
solve('2*b^2=a^2+c^2+d^2-d*((4*r^2-y^2)^(1/2)*cos(e)+y*sin(e))-2*c*d*((r^2-d^2*(cos(e))^2)^(1/2)*cos(e)+d*cos(e)*sin(e))/r+c*((4*r^2-y^2)^(1/2)* (r^2-d^2*(cos(e))^2)^(1/2)+y*d*cos(e))')
Warning: Warning, solutions may have been lost

ans =

-(-2*b^2*r+a^2*r+c^2*r+d^2*r+d*(-2*c^2*r^2*d*cos(e)+c^3*r*(r^2-d^2*cos(e)^2)^(1/2)+2*b^2*r*d*cos(e)-d^3*r*cos(e)+a^2*r*c*(r^2-d^2*cos(e)^2)^(1/2)+d^2*r*c*(r^2-d^2*cos(e)^2)^(1/2)-a^2*r*d*cos(e)-2*b^2*r*c*(r^2-d^2*cos(e)^2)^(1/2)-c^2*r*d*cos(e)-2*d^3*c*sin(e)^3+2*d^3*c*sin(e)+2*d^2*c*(r^2-d^2*cos(e)^2)^(1/2)*cos(e)^2-2*c^2*d^2*cos(e)*sin(e)*(r^2-d^2*cos(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sin(e)-d^6*r^2)^(1/2))/(r^2*c^2-2*c*d^2*cos(e)*sin(e)-2*c*d*cos(e)*(r^2-d^2*cos(e)^2)^(1/2)+d^2)*(r^2-d^2*cos(e)^2)^(1/2))/d/r/(-sin(e)+c*cos(e))

我觉得你的目的不是解这个方程,不管怎样,告你怎么搞吧
greatdju
2008-08-09 · TA获得超过2.2万个赞
知道大有可为答主
回答量:2486
采纳率:50%
帮助的人:4169万
展开全部
y=solve('2*b^2=a^2+c^2+d^2-d*((4*r^2-y^2)^(1/2)*cos(e)+y*sin(e))-2*c*d*((r^2-d^2*(cos(e))^2)^(1/2)*cos(e)+d*cos(e)*sin(e))/r+c*((4*r^2-y^2)^(1/2)* (r^2-d^2*(cos(e))^2)^(1/2)+y*d*cos(e))','y')
这不就是y=f(r)的形式吗,还是2个解。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
wise_111
2008-08-06 · TA获得超过892个赞
知道小有建树答主
回答量:329
采纳率:0%
帮助的人:354万
展开全部
你应该也把y定义上,即:
syms a b c d e y;
然后你再试试。
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
kettyx
2008-08-20 · TA获得超过1022个赞
知道小有建树答主
回答量:473
采纳率:0%
帮助的人:378万
展开全部
把方程左边的挪到右边去
syms a b c d e y r;
f = -2*b^2 + a^2+c^2+d^2-d*((4*r^2-y^2)^(1/2)*cos(e)+y*sin(e))-2*c*d*((r^2-d^2*(cos(e))^2)^(1/2)*cos(e)+d*cos(e)*sin(e))/r+c*((4*r^2-y^2)^(1/2)* (r^2-d^2*(cos(e))^2)^(1/2)+y*d*cos(e)) ;

solve(f,y)
两个解:

ans =
-(-2*b^2*r+a^2*r+c^2*r……………………
-(-2*b^2*r+a^2*r+c^2*r+d^2*r+d*(……
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(2)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式