Python Code used for generating the animations of the video

Youtube Video

There are three scenes in total, each contained in a separate file. If you want to compile a particular scene, use the following commands.

  • iterative_opt.py, compile with make iterativeopt
  • newton_frac.py, compile with make newtonfrac
  • gradient_descent_1d.py, compile with make gradientdescent

Note that you need to install the manim library.