Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Business Management Expert

Create a function called intpoly( ) that can numerically integrate the polynomial function y = ax2 + bx + c from a lower limit to an upper limit, where a, b, and c are constants. Your numerical integrator must allow the user to use the Trapezoidal method or Riemann sums method (as we used in discussion) depending on the choice of the user. If the value of choice is 1, the Riemann sums method will be used to numerically integrate the polynomial (you may use either a left, right, or midpoint Riemann sums method). If the value of choice is 2, the Trapezoidal method will be used to numerically integrate the polynomial.

The main program calls the function intpoly( ) and has the following form:

% numerically integrate y(x) = ax^2 + bx + c

%  from lowerlimit to upperlimit

a = 2; b = 2; c = 1;

% from 0 to 1

lowerlimit = 0;

upperlimit = 1;

% number of discretizations

N = 1000;

% choice: 1 = Riemann, 2 = Trapezoidal

choice = 2;

disp( intpoly(a,b,c,lowerlimit,upperlimit,N,choice) )

The arguments passed down to intpoly( ) are the polynomial coefficients (a,b,c), the lower and upper limits of integration (lowerlimit,upperlimit), the number of discretizations (N), and the method of integration (choice). The area is returned to the main program.

Business Management, Management Studies

  • Category:- Business Management
  • Reference No.:- M92321408
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Business Management

What is the lesson learned from the stories about the

What is the lesson learned from the stories about the accuracy of Wikipedia?

Espn pays the nfl 11 billion per year for 8 yrs for the

ESPN pays the NFL $1.1 Billion per year for 8 yrs for the right to exclusively televise football. What is the NPV of the investment if the parent Disney CO has an opportunity interest rate that is equal to the cost of ca ...

What strategies can the teacher implement to build positive

What strategies can the teacher implement to build positive rapport with students in the learning environment?

Dairy cows in most countries calve on a regular annual

Dairy cows in most countries calve on a regular annual basis. Their milk output varies over the year accordingly, with a peak reached a few months after calving, followed by a decline to almost zero in the tenth month. K ...

In a perfectly competitive model firms are price takers

In a perfectly competitive model firms are price takers, total revenue for the perfectly competitive firm is equal to pq. Derive marginal revenue and average revenue.

Read the article titled 2016 oil and gas trendslocated at

Read the article titled "2016 Oil and Gas Trends",located at http://www.strategyand.pwc.com/trends/2016-oil-and-gas-trends. Next, argue for or against this statement: A company should determine its goals and values befor ...

A description of how each of the two management styles

A description of how each of the two management styles selected distinctively create organizational cultures.  Describe the strengths and weaknesses of the two styles.  Explain how these differences could align or be dis ...

When it comes to creating a shared vision how many people

When it comes to creating a shared vision, how many people do you think should be involved, and what factors go into that decision?

Subsequent to your summary and working with your chosen

Subsequent to your summary and working with your chosen topic, use your textbook, articles, journals, and the Internet, and present the topic as it is applied in a real-time business scenario (within 1 year). Your analys ...

What are the pros and cons of allowing the ceo of a company

What are the pros and cons of allowing the CEO of a company to also serve as the Chair of the Board? Please provide an example of a situation where this was positive or a situation where this was negative

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As