Write a python function to calculate the series of exponential function.