--- title: Matlab tags: Applied_math_method GA: G-77TT93X4N1 --- # Matlab ## Chebfun ```matlab= x = chebfun('x', [0 pi]); eps = 0.01; f = exp(eps*sin(x)); sum(f) ``` ## Contour ```matlab= x = linspace(-3, 1, 1000); ep = linspace(-0.01, 0.01, 1000); [X, E] = meshgrid(x, ep); f = (X+1).^3 - E.*X; mesh(X, E, f) f(f>0)=1; f(f<0)=-1; mesh(X, E, f) contour(X, E, f) ```