Solving simultaneous non linear equation
이전 댓글 표시
What code do I use to solve these equations?
{(40/t)-(20/t+1)-3.8+[(7.6*k*e^-3.8*t)((1/(t+1)^2)-(t+1+3.8*t)/(t+1))]/1-k+(2*k*e^-3.8*t)(t+1+3.8*t)/(t+1)}=0
,{[-1+(2*e^-3.8*t)(t+1+3.8*t)/(t+1)]/(1-k+(2*k*e^-3.8*t)(t+1+3.8*t)/(t+1)}=0
댓글 수: 1
Walter Roberson
2016년 9월 27일
Is e^-3.8*t exp(-3.8)*t or exp(-3.8*t)
답변 (1개)
John D'Errico
2016년 9월 27일
0 개 추천
Use either vapsolve of fsolve. These are nonlinear equations that will almost surely have no analytical solution. Both of those tools will try to find a numerical solution.
They will NOT find all solutions. That can be a very difficult problem. And there is no assurance that a solution even exists.
You need to use the exp(x) function to compute e^x. There are lots of questions I would have about the equations as written. It looks like you were not at all careful about how you wrote them, in terms of missing parens, etc. Also note that you cannot mix in {} as parentheses. {} creates a cell array in MATLAB. Use () to enforce the order of operations, ALWAYS.
카테고리
도움말 센터 및 File Exchange에서 Newton-Raphson Method에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!