First and last term in summation must be multiplied by 0.5