clear; clc;

f = @(x) x ^ 2 - 2 * x + 1;

df_dx = getSlope(f)
df_dx(3)

getSlope(f, 3)

y1 = @(x) sin(x)
y2 = @sin
y3 = @(x, y) sin(x) + cos(y)
