def qxscalar(scalar, quat):
    """quaternion scalar multiplication
    :param scalar: scalar value
    :param quat: quaternion value
    :return: scaled quaternion set; q_out = scalar * quat
    """
    return [scalar*q for q in quat]