- Results returned by int do not include integration constants.
Problem with indefinite integral
조회 수: 2 (최근 30일)
이전 댓글 표시
why does the indefinite integral shows incorrect result??
how to get the constant term lost back??
댓글 수: 0
답변 (1개)
Walter Roberson
2019년 8월 23일
TIPS
If you need a constant of integration, then add one yourself.
"why does the indefinite integral shows incorrect result??"
What leads you to say that the results are wrong?
>> int(2*sin(t)+3*cos(t))
ans =
6*cos(t/2)*sin(t/2) - 4*cos(t/2)^2
>> diff(ans,t)
ans =
3*cos(t/2)^2 - 3*sin(t/2)^2 + 4*cos(t/2)*sin(t/2)
>> simplify(ans)
ans =
3*cos(t) + 2*sin(t)
Looks consistent to me.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Operating on Diagonal Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!