Effacer les filtres
Effacer les filtres

eqauttons solveing non linear why i am geting this error

4 vues (au cours des 30 derniers jours)
Bader Herzallah
Bader Herzallah le 7 Avr 2022
[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

Réponse acceptée

Walter Roberson
Walter Roberson le 7 Avr 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 commentaires
Bader Herzallah
Bader Herzallah le 7 Avr 2022
Bader Herzallah
Bader Herzallah le 7 Avr 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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by