Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

--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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions