def METHOD_NAME(quantity_list,tolerance):
    try:
        return_val = True
        error_list = []
        initial_value = quantity_list[0]
        if np.abs(initial_value) < tolerance:
            for q in quantity_list:
                error = q - initial_value
                error_list.append(error)
                if np.abs(error) > tolerance:
                    return_val = False
        else:
            for q in quantity_list:
                error = q / initial_value - 1.0
                error_list.append(error)
                if np.abs(error) > tolerance:
                    return_val = False
        return (np.array(error_list),return_val)
    except:
        print("Encounted error while trying to calculate error in quantity")
        sys.exit(1)