title: Full algorithm (math) of natural cubic splines computation in Python?
body: <p>I'm interested in full Python code (with math formulas) with all computations needed to calculate natural <a href="https://en.wikipedia.org/wiki/Spline_(mathematics)#Algorithm_for_computing_natural_cubic_splines" rel="nofollow noreferrer">Cubic Splines</a> from scratch. If possible, fast (e.g. Numpy-based).</p>
  <p>I created this question only to share my code (as answer) that I programmed recently from scratch (based on Wikipedia) when learning cubic splines.</p>