The value e^x can be approximated by the sum 1 +x+(x^2)/2 + (x^3)/3…+x^n/n write a program that takes a value x as input and outputs this sum for n taken to be each of the values 1 to 100. the progr

The value e^x can be approximated by the sum 1 +x+(x^2)/2 + (x^3)/3…+x^n/n write a program that takes a value x as input and outputs this sum for n taken to be each of the values 1 to 100. the program should also input e^x calculated using the predefined function exp. the function exp is a predefined function such that exp(x) returns an approx. to the value e^x. the function exp is in the library w/ the header file cmath. your program should repeat the calculation for new values of x until the user says she/he is through. use variables of type double to store the factorials or your are likely to produce integer flow (or arrange your calc to avoid any direct calculation of factorials). 100 lines of output might not fit comfortably on your screen. output the 100 output values in a format that will fit all 100 values on the screen. for example, you might output 10 lines with 10 values on each line.

homeworkhelplocal
Calculate your essay price
(550 words)

Approximate price: $22

How it Works

1

It only takes a couple of minutes to fill in your details, select the type of paper you need (essay, term paper, etc.), give us all necessary information regarding your assignment.

2

Once we receive your request, one of our customer support representatives will contact you within 24 hours with more specific information about how much it'll cost for this particular project.

3

After receiving payment confirmation via PayPal or credit card – we begin working on your detailed outline, which is based on the requirements given by yourself upon ordering.

4

Once approved, your order is complete and will be emailed directly to the email address provided before payment was made!