求在MATLAB中定积分的数值解和符号解.

查题易 其它 已帮助

求在MATLAB中定积分的数值解和符号解.

优质解答

共1条回复

  • >>f='sin(s+2*x)';
    >>int(f) %符号解
    ans =
    -cos(s + 2*x)/2
    >>int(f,pi/2,pi) %数值解
    ans =
    -cos(s)