<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def scalar_projection(v1, v2):
    '''compute the scalar projection of v1 upon v2

    Args:
        v1, v2: iterable
        indices 0, 1, 2 corresponding to cartesian coordinates

    Returns:
        3-vector of the projection of point p onto the direction of v
    '''
    return np.dot(v1, v2) / np.linalg.norm(v2)