dsolve numerically ignoring the analytical solution
이전 댓글 표시
I try to run this line and it didn't work.
syms y(x) c(x) g(x) k(x) x [y1(x), c1(x)] = dsolve(diff(y) == c(x),diff(c) == -(x+1)*c(x)+2*y(x)+(1-x^2)*exp(-x), y(0) == -1, c(0) == 1, 'IgnoreAnalyticConstraints','false');
What's wrong with it?
답변 (1개)
Torsten
2015년 3월 26일
What about
syms y(x)
Dy=diff(y);
dsolve(diff(y,2)==-(x+1)*diff(y)+2*y+(1-x^2)*exp(-x),y(0)==-1,Dy(0)==1,'IgnoreAnalyticConstraints',false);
Best wishes
Torsten.
카테고리
도움말 센터 및 File Exchange에서 Dynamic System Models에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!