import numpy as np
from math import isnan, isinf
from scipy.interpolate import splev
from matplotlib import pyplot as plt

# Recursive De Boor algorithm problem.
def N(x, i, k, t):
    """ Computes the i'th basis function of order 'k'
    for the spline with knot vector 't' at the parameter value 'x'."""
    pass

# Circle approximation problem,
# 'splev' version.
def circle_interp(m, k, res=401):
    """ Plots an interpolating spline of degree 'k'
    with parameters ranging from 0 to 'm'
    that approximates the unit circle.
    Uses scipy.integrate.splev."""
    pass

# version using your own code
def my_circle_interp(m, k, res=401):
    """ Plots an interpolating spline of degree 'k'
    with parameters ranging from 0 to 'm'
    that approximates the unit circle.
    Uses the function 'N' defined above."""
    pass

# What the script does if it is run from command line.
if __name__=="__main__":
    circle_interp(20, 4)
    my_circle_interp(20, 4)
