clear; clc;

f = @(x) x ^ 2 + 2 * x + 3;
x0 = -1;
m = getSlope(f)
m(x0)