필터 지우기
필터 지우기

eqauttons solveing non linear why i am geting this error

조회 수: 4 (최근 30일)
Bader Herzallah
Bader Herzallah 2022년 4월 7일
댓글: Bader Herzallah 2022년 4월 7일
[x,y] = solve([x + y == 1000 (0.4818*10.^-7)*x.^4 - (0.9089*10.^-4)*x.^3 + (0.6842*10.^-1)*x.^2 - (0.2106*10.^2)*x +9860 == (0.9592*10.^-7)*y.^4 - (0.7811*10.^-4)*y.^3 + (0.2625*10.^-1)*y.^2 - (0.2189*10)*y +9003],[x,y])
Error using sym/solve>getEqns
Input argument contains an empty equation or variable.
Error in sym/solve (line 226)
[eqns,vars,options] = getEqns(varargin{:});
Related documentation

채택된 답변

Walter Roberson
Walter Roberson 2022년 4월 7일
syms x y
eqn = [x + y == 1000,0.4818*10^-7*x^4 - 0.9089*10^-4 + 0.6842*10^-1*x^2 - 0.2106*10^2*x + 9860 == 0.9592*10^-7*y^4 - 0.7811*10^-4*y^3 + 0.2625*10^-1*y^2 - 0.2189*10*y + 9003]
eqn = 
sol = solve(eqn, [x y], 'MaxDegree', 4)
sol = struct with fields:
x: [4×1 sym] y: [4×1 sym]
sol.x
ans = 
sol.y
ans = 
vpa(sol.x)
ans = 
vpa(sol.y)
ans = 
  댓글 수: 3
Bader Herzallah
Bader Herzallah 2022년 4월 7일
this is the quation
first eqaution is lp+lq=1000
the sconde one is IRp=IRq
the answers should be
Lp=732.5
Lq=267.5
how i can get this answer in matlab

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by