Question: --This is a C programming assignment. The solution is expected to be written in C language. --I can only use loops, conditions, functions, arrays. (You

--This is a C programming assignment. The solution is expected to be written in C language.

--I can only use loops, conditions, functions, arrays. (You better do it without using the math library.)

--Please add comment lines!!

--I have 4 functions (don't break prototypes): The necessary operations and calculations should be done in functions and should be called in main. The things to do in each function are explained.

-- Hint: Riemann Method can be used for integral calculation and Newton's Raphson Method can be used for root finding.

double integral_calculation(double a0, double a1, double a2, double a3, double xs, double xe, double delta): Numerical calculation of the integral of one degree three polynomial in the interval [xs, xe]. The given parameter delta provides the step size for integration.

double integral_calculation2(double a0, double a1, double a2, double a3, double a4, double xs, double xe, double delta): Numerical calculation of the integral of a degree four polynomial within the range [xs,xe]. The given parameter delta provides the step size for the integration.

double find_root(double a0, double a1, double a2, double a3, double xs, double xe): Finds a root of the given 3rd degree polynomial within the range of [xs,xe]. You can assume that there is a root in the given range.

double find_root2(double a0, double a1, double a2, double a3, double a4, double xs, double xe): Finds a root of the given 4 th degree polynomial within the range of [xs,xe]. You can assume that there is a root in the given range.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!