(quaternion)
return float(quaternion[0])
Return real part of quaternion.

    >>> quaternion_real([3, 0, 1, 2])
    3.0
Return real part of quaternion.
Return real part of quaternion .
def quaternion_real(quaternion):
    """Return real part of quaternion.

    >>> quaternion_real([3, 0, 1, 2])
    3.0

    """
    return float(quaternion[0])
def quaternion_real ( quaternion ) : return float ( quaternion [ 0 ] )