<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def quaternion(vector, angle):
 """ Unit quaternion for a vector and an angle """

    return N.cos(angle/2)+vector*N.sin(angle/2)