0

need help for this small Q here, just hoping someone could write out a full c++ programme for the problem, with comments wherever nessecary, thanks!

Write a function to evaluate eX , using a series approximation (see below). Compare the output of your function with the library function exp(x). How many terms do you require so that the result is correct to 6 significant figures ? Use you program to find the number base of the natural logarithm

Hint : ex = 1 + x + x2/2! + x3/3! + ….. +xn/n!