Different answers when I do the same integration
조회 수: 2 (최근 30일)
이전 댓글 표시
Hey,
I'm getting different answers when I perform the same integration but by just expanding the squared term.
How is this possible?
As I procced further, I'm getting 2 completely different answers as my result.
Which one is correct?
PS: I'm getting the same answer even after using 'IgnoreAnalyticConstraints',true.
Thanks
댓글 수: 4
답변 (1개)
David Hill
2022년 9월 13일
They are not the same expressions.
syms x
int((1+cos(x))^2,0,pi)
int(1+2*cos(x)+cos(x)^2,0,pi)
int(1+cos(x)^2-2*(1-cos(x)),0,pi)%this is not the same expression
댓글 수: 2
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!