用MATLAB求解不定积分和定积分,可以用int()函数求解。
>> syms x
>> int(1/(1+sqrt(2*x))) %题1
>> int((1+x)*exp(-x),0,1) %题2
运行结果