I want help solving differential equations
조회 수: 2 (최근 30일)
이전 댓글 표시
채택된 답변
Rik
2022년 12월 1일
Exp is a function, not a number. There is also no implicit multiplication.
My (untested) suggestion would be this:
syms x(t);
eqn = exp(x).*(diff(x,t)+1)==1;x(0)=1;
sol = dsolve(eqn);
Some bits and pieces may still need adjusting.
댓글 수: 2
Rik
2022년 12월 1일
You can set the assumption as the second parameter in dsolve, as the documentation explains:
syms x(t);
eqn = exp(x).*(diff(x,t)+1)==1;
sol = dsolve(eqn,x(0)==1)
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!