Matlab Quick Notes 81: Integral Calculations, Definite and Indefinite Integrals
1.Programming Example (1) Calculate the indefinite integral of the function f(x,y)=2x + 2ny with respect to x. Program: syms x y n f = 2*x + 2*n*y int(f,x) Running Result: f = 2*x + 2*n*y ans = x^2 + 2*n*y*x (2) Calculate the definite integral of the function f(x)=sin(cos(x)) over the interval [0,1]. syms x … Read more