Your program should prompt the user for values for neg and pos. It should refuse to compute the root until valid values are entered.
Use each of these programs to compute the sum for n = one million. Carefully explain why the differences in the answers arise. Which one do you think is correct? Why?