def log2lin(dlogyl, dlogyu, logy):
    """
From a given uncertainty in log-space (dex) and the value of y, calculates the
error in linear space.

Returns a sequence with the lower and upper arrays with errors.
	"""
    dyu = 10 ** logy * (10.0 ** dlogyu - 1.0)
    dyl = -10 ** logy * (10.0 ** -dlogyl - 1.0)
    return dyl, dyu
