Episode 5: Sines And Cosines Part II - Project MATHEMATICS!
def parabola(x, h, k):
return a * math.pow(x - h, 2) + k
def cubicpolynomial(x, a, b, c):
return math.pow(x, 3) + (a * math.pow(x, 2)) + (b * x) + c
Optimization is at the core of machine learning. It's what's used to "train" neural networks.
Many problems in optimization are multii objective problems where you'd be looking for both maxima and minima.
$$ g(x,y) = \frac{1}{2\pi\sigma^2}e^{-\frac{x^2+y^2}{2\sigma^2}}, $$
Formula for any Gaussian distribution