## Animations generated in R version 3.2.3 (2015-12-10)
##   using the package animation
library(animation)
library(knitr)
grad.desc(function(x, y) sin(0.5 * x^2 - 0.25 * y^2 + 3) * cos(2 * 
    x + 1 - exp(y)), rg = c(-2, -2, 2, 2), init = c(-1, 0.5), 
    gamma = 0.3, tol = 1e-04, col.contour = 1, col.arrow = 2)
## R version 3.2.3 (2015-12-10)
## Platform: x86_64-w64-mingw32/x64 (64-bit)
## Other packages: animation 2.4, knitr 1.11