spacepy.coordinates.quaternionConjugate

spacepy.coordinates.quaternionConjugate(Qin, scalarPos='last')[source]

Given an input quaternion (or array of quaternions), return the conjugate

Parameters
Qinarray_like

input quaternion to conjugate

Returns
outarray_like

conjugate quaternion

Examples

>>> import spacepy.coordinates
>>> spacepy.coordinates.quaternionConjugate(
...     [0.707, 0, 0.707, 0.2], scalarPos='last')
array([-0.707, -0.   , -0.707,  0.2  ])