Question: Program to find area using trapezoidal rule. Looking for a program that can be a guidance as I work on my own. Write three functions:
Program to find area using trapezoidal rule. Looking for a program that can be a guidance as I work on my own.



Write three functions: a. a function fn to integrate over. Let's use fn -> -6x2 +5x+3 fn takes a single double parameter, the value x fn returns a double, the result of the function evaluation i. ii. b. a function integral , the actual integral of fn which is integral 2 i. integral takes a single double parameter, x ii. integral returns a double, the result of the function let's further fix the interval to calculate the integral over as 0 to 1 P(x)-6x25x 3 E1 -2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
