Problem 12 page 379 The Power Series 1+x+((x^2)/(2!))+((x^3)/(3!))+...= x^k/k! (
ID: 3618183 • Letter: P
Question
Problem 12 page 379The Power Series
1+x+((x^2)/(2!))+((x^3)/(3!))+...= x^k/k! (on top ofthe sigma is infinity and on the bottom is k=0)
Converges to e^x for all values x. Write a functionsubprogram that uses this series to calculate values for e^x tofive decimal-place accuracy (i.e., using terms up to the first onethat is less than 10^-5 in absolute value) and that uses a functionsubprogram to calculate factorials. Use these subprograms ina main program to calculate and print a table of values for thefunction
cosh(x)=(e^x+e^-x)/(2)
and also the corresponding values of the library function COSH forx=-1 to 1 in increments of 0.1.