In line 15 use the half-open interval, i.e., if u>=t[0][i] and u<t[0][i+1]:. Otherwise, at knot values, you evaluate two basis functions at ...
確定! 回上一頁