fun cost

g fun costante

coeff di x^3...

f(x)=k*x^3

retta coeff angolare

h fun retta

fun somma

f0 = 0 (slider from -1 to 1, step 0.05)
fCost(x) = f0
fk = 0.4 (slider from -1.2 to 1.2, step 0.05)
fx3(x) = (fk * x^(3))
f1 = 0 (slider from -2 to 2, step 0.1)
fRetta(x) = (f1 * x)
f(x) = fx3(x) + fRetta(x) + fCost(x)