結果 : average cost from total cost function