i need to write a program that asks the user to input a number for the following forumla:
e^x = 1 + x + (x^2/2!) + (x^3/3!) + (x^4/4!) + ...
it should contain a function that accepts this number as an input argument and returns the exponential of this number using the formula and I also have to write a unit test to see if the program calculates the correct exponential result up to 2 decimal places by comparing it with the output of exp()
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here