Borrar filtros
Borrar filtros

i have qaustion but the problem i am not geting the same answer

1 visualización (últimos 30 días)
Bader Herzallah
Bader Herzallah el 7 de Abr. de 2022
Respondida: Walter Roberson el 7 de Abr. de 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]
sol = solve(eqn, [x y], 'MaxDegree', 4)
sol.x
i am geting these answers
>> vpa(sol.x)
ans =
5356.1153115505689987091534529373
387.53359536588140834981169092996
328.53164205916041477357519519496 + 553.13850485286769309273713883156i
328.53164205916041477357519519496 - 553.13850485286769309273713883156i
these answers what should i got butt i am get these big answers why
Lp=x=732.5
Lq=y=267.5
firs eq1=Lp+Lq==1000
eq2=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]
its not giveingthe right answers why ????

Respuestas (1)

Walter Roberson
Walter Roberson el 7 de Abr. de 2022
Look very carefully at the first equation. , , ,
But what you implemented instead was , , ,
Notice that the actual last term does not involve L and notice that it involves but what you implemented does involve L and involves a term without the ^2

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by