필터 지우기
필터 지우기

Incorrect integral being returned.

조회 수: 1 (최근 30일)
D
D 2011년 11월 19일
getting an odd result when trying to integrate 50 - t.
syms t;
rate = 50- t;
int(rate)
it returns -(t - 50)^2/2 I'm pretty sure the integral should return -(t*(t - 100)/2
Is there a fix for this?
  댓글 수: 2
Walter Roberson
Walter Roberson 2011년 11월 19일
You are correct that that output should be what you expected (or a form of that).
Which MATLAB version are you using?
D
D 2011년 11월 19일
7.12.0 (R2011a)

댓글을 달려면 로그인하십시오.

채택된 답변

Wayne King
Wayne King 2011년 11월 20일
I don't see what is wrong with that antiderivative, maybe it differs by a constant from what you expect, but it is a valid antiderivative.
-(t-50)^2/2 differentiated with respect to t is 50-t
-(t(t-100))/2 differentiated with respect to t is also 50-t
The above two expressions only differ by a constant.
  댓글 수: 1
Walter Roberson
Walter Roberson 2011년 11월 20일
That's a good point, Wayne.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by