Question: 1 ) Write a program that repeatedly evaluates a n - th order polynomial p ( x ) = a 0 + a 1 *
Write a program that repeatedly evaluates a nth order polynomial px a ax ax anxn where n The program inputs n ai and x from the keyboard and then prints out the corresponding value of p to the screen. The program continues to input new values of n ai x and evaluates p until a negative value for n is input, at which point the program stops.
Write a program that calculates expx using the Taylor series approximation expapprox x x x where x and error are input from the keyboard and a sufficient number of series terms are used such that abs expapprox expx error. Hint: Use in a loop to calculate xi and i and print them out to the screen to verify that your loop is correct before calculating the series approximation.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
