<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def softmax(w, t=1.0):
 """Calculate the softmax of a list of numbers w. Parameters w : list of numbers Returns ------- a list of the same length as w of non-negative numbers Examples -------- array([ 0.47502081, 0.52497919]) array([ 0.42555748, 0.57444252]) array([ 9.99981542e-01, 1.84578933e-05]) array([ 4.53978687e-05, 9.99954602e-01]) """

    w = [Decimal(el) for el in w]
    e = numpy.exp(numpy.array(w) / Decimal(t))
    dist = e / numpy.sum(e)
    return dist