A simple integration problem!
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
Hey all,
I am trying to solve a simple integral expression using matlab, but it calculates it at a wrong way. let us for example integrate the expression '1+x' by int('1+x',x), it will give us an answer wich is (1+x)^2/2, but the right answer is x^2+x, so what should I do in order to let matlab work with the expression as it assumed to be? any help please!! thanks all
댓글 수: 1
Andrei Bobrov
2012년 8월 15일
int(1+x,x) = x^2/2+x+C
for your case: C = 1/2
답변 (1개)
Azzi Abdelmalek
2012년 8월 15일
편집: Azzi Abdelmalek
2012년 8월 15일
(x^2+x)'=2x+1
that means that your result is false. now matlab result :
((1+x)^2/2)'=1+x
which correspond to your function.
댓글 수: 0
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!