Determine the knot span index
function n_findSpan extends Modelica.Icons.Function; input Integer p "degree"; input Real u "parameter"; input Real knots[:] "knot vector"; output Integer i "The knot span index"; end n_findSpan;