def quaternion_conjugate(quaternion):
 q = numpy.array(quaternion, dtype=numpy.float64, copy=True)
 numpy.negative(q[1:], q[1:])
 return q

def quaternion_conjugate ( quaternion ) : q = numpy . array ( quaternion , dtype = numpy . float64 , copy = True ) numpy . negative ( q [ 1 : ] , q [ 1 : ] ) return q
return conjugate of quaternion .