Filter löschen
Filter löschen

eqauttons solveing non linear why i am geting this error

4 Ansichten (letzte 30 Tage)
[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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 7 Apr. 2022
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 Kommentare
Bader Herzallah
Bader Herzallah am 7 Apr. 2022
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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by