急求:matlab解二元二次方程组!!
(x+100)^2+y^2-1.9696xy-196.96y-90000=0(x-100)^2+y^2-1.4142xy+141.42y-90000=0用symsxy;s...
(x+100)^2+y^2-1.9696xy-196.96y-90000=0
(x-100)^2+y^2-1.4142xy+141.42y-90000=0
用
syms x y;
solve('y^2+(x+100)^2-1.9696xy-196.96y-90000=0','(x-100)^2+y^2-1.4142xy+141.42y-90000=0','x','y')
按回车键怎么提示
Error using ==> solve>getEqns at 202' y^2+(x+100)^2-1.9696xy-196.96y-90000=0 ' is not a valid expression or equation.
Error in ==> solve at 67[eqns,vars] = getEqns(varargin{:}); 展开
(x-100)^2+y^2-1.4142xy+141.42y-90000=0
用
syms x y;
solve('y^2+(x+100)^2-1.9696xy-196.96y-90000=0','(x-100)^2+y^2-1.4142xy+141.42y-90000=0','x','y')
按回车键怎么提示
Error using ==> solve>getEqns at 202' y^2+(x+100)^2-1.9696xy-196.96y-90000=0 ' is not a valid expression or equation.
Error in ==> solve at 67[eqns,vars] = getEqns(varargin{:}); 展开
1个回答
展开全部
应该是
1.9696xy中间要乘号:1.9696*x*y
196.96y 1.4142xy 141.42y也是的
1.9696xy中间要乘号:1.9696*x*y
196.96y 1.4142xy 141.42y也是的
追问
谢谢!现在已经改过来了,但出现了这种情况:
syms x y; solve('(x+100)^2+y^2-1.9696*x*y-196.96*y-90000=0','(x-100)^2+y^2-1.4142*x*y+141.42*y-90000=0','x','y')
ans =
x: [4x1 sym]
y: [4x1 sym]
这个x,y值好像不对呀?
追答
用
[x,y]= solve('y^2+(x+100)^2-1.9696*x*y-196.96*y-90000=0','(x-100)^2+y^2-1.4142*x*y+141.42*y-90000=0')
这个试试
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询