syms a b c d
>>result=int('a*x+sin(b*x)','x','c','d')%从c积分到d
result =-1/2*(-a*d^2*b+2*cos(b*d)+a*c^2*b-2*cos(b*c))/b
>> int('a*x+sin(b*x)','x','d','c')
ans =1/2*(-a*d^2*b+2*cos(b*d)+a*c^2*b-2*cos(b*c))/
syms a b c d
>>result=int('a*x+sin(b*x)','x','c','d')%从c积分到d
result =-1/2*(-a*d^2*b+2*cos(b*d)+a*c^2*b-2*cos(b*c))/b
>> int('a*x+sin(b*x)','x','d','c')
ans =1/2*(-a*d^2*b+2*cos(b*d)+a*c^2*b-2*cos(b*c))/