def bernstein(n, t):
t1 = <NUM_LIT:1>-t<EOL>return [n_choose_k(n, k) * t1**(n-k) * t**k for k in range(n+<NUM_LIT:1>)]<EOL>
returns a list of the Bernstein basis polynomials b_{i, n} evaluated at
    t, for i =0...n