function index = point(A, t)

  for index=1 : length(A)

    if A(index) >= t
      return
    endif

  endfor

endfunction
