Question: using c code please 2. Write a program that finds an approximation for et by summing the first in terms of the sequence: e k!
2. Write a program that finds an approximation for et by summing the first in terms of the sequence: e k! The program should read in n and x and should print out the approximation. It should also print out the value of the exp(x) C function for comparison. Experiment with the program, and add a comment to your program suggesting a good way to choose n if you know r so that the answer is close to correct. Hint 1: You should use both your own function to approximate e and the standard S function exn(x) in math h
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
