%%
%Numerical integration

%function that we want to integrate
F = inline('(x.^3)')
%numerical integration of the above function using Simpsons rule
Q = quad(F,0,2); 

%symbolic integration of particular function on the interval [0,2]
syms x 
int(log(x^2),0,2)  

%symbolic indefinite integration of particular function
syms x 
int(log(x^2))

