%%
%Numerical derivatives

%calculation of the derivative in particular points where the function is
%given by the table
dataX = 1:9
dataY = log(dataX)
%numerical derivative of logarithm at particular points dataX
derivace(dataX,dataY)

%use of the symbolic package for the derivative calculation
syms x
%symbolic derivative of the function x^3
diff(x^3)
%calculation of the derivative of function x^3 at particular point
subs(diff(x^3),5)

