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

1 次查看(过去 30 天)
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 ????

回答(1 个)

Walter Roberson
Walter Roberson 2022-4-7
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

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by