Solve any equation using gradient descent