added an approximation and updated the summation such that it can give an approximation for the summation aswell