Gradient Descent

Minimize f(x) using gradient descent (1D or 2D).

Input
Result

Enter function.