def _naive_eval_2(x, t, c, k):
 n = (len(t) - (k + 1))
 assert (n >= (k + 1))
 assert (len(c) >= n)
 assert (t[k] <= x <= t[n])
 return sum(((c[i] * _naive_B(x, k, i, t)) for i in range(n)))

def _naive_eval_2 ( x , t , c , k ) : n = ( len ( t ) - ( k + 1 ) ) assert ( n >= ( k + 1 ) ) assert ( len ( c ) >= n ) assert ( t [ k ] <= x <= t [ n ] ) return sum ( ( ( c [ i ] * _naive_B ( x , k , i , t ) ) for i in range ( n ) ) )
naive b-spline evaluation .