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 ????
댓글 수: 0
답변 (1개)
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
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!