def remove_projection_from_vector(v, w):
 return vector_subtract(v, project(v, w))

def remove_projection_from_vector ( v , w ) : return vector_subtract ( v , project ( v , w ) )
projects v onto w and subtracts the result from v .