Write a c algorithm that calculates the area

Assignment Help Data Structure & Algorithms
Reference no: EM131210663

Write a C algorithm that calculates the area under the curve y = f (x) for c ≤ x ≤ d:

  • f is a 4th order polynomial function f (x) = a0 + a1x + a2x2 + a3x3 + a4x4
  • With x ∈ R and ak ∈ R

The algorithm must use the trapezoidal integration method describes by the following curves: Area = cdf(x)dx

941_Figure.png

  • We divide the integration range [d - c] into N trapezes and we calculate the area of each trapeze alone then we add all the areas calculated to obtain the total area under the curve. The more trapezes considered in the range [d - c] the more accurate the result of area calculation is
  • The user will enter the polynomial coefficients a0, a1, a2, a3, a4 as well as the integration limits c and d
  • Your algorithm will start with N = 1, calculate the area then increase by 1 the number of trapezes used until the difference between two calculations is less than 1%.

Reference no: EM131210663

Questions Cloud

Tax-deductible interest : Given that an S&L is willing to lend money at an loan-to-value ratio of 75 percent. How much, if any, of this line would qualify as tax-deductible interest if their house originally cost $200,000?
Common stock value-all growth models : You are evaluating the potential purchase of a small business currently generating $42,500 of after-tax cash flow (D0 = $42,500). On the basis of a review of similar-risk investment opportunities, you must earn an 18% rate of return on the proposed..
Prepare the adjusting entry on december 31 : Estimate Martel's uncollectible accounts percentage based on its actual bad debt experience during the past two years.
Considering a new project : You are an analyst for a sporting goods corporation that is considering a new project which will take advantage of excess capacity in a existing plant. The plant has a capacity to produce 50000 tennis racquets, but only 25000 are being produced cu..
Write a c algorithm that calculates the area : Write a C algorithm that calculates the area under the curve y = f (x) for c ≤ x ≤ d: f is a 4th order polynomial function f (x) = a0 + a1x + a2x2 + a3x3 + a4x4
Summarize the impact of foreign exchange rates : Summarize the impact of foreign exchange rates on the company's financial statements. - What risks do foreign exchange rates pose?
Create a application that will present a survey to customers : You have been asked by your manager to create a user-friendly application that will present a survey to your customers. The application will compile and analyze the results entered by the survey respondents.
Tax-deductible interest : Given that an S&L is willing to lend money at an loan-to-value ratio of 75 percent. How much, if any, of this line would qualify as tax-deductible interest if their house originally cost $200,000?
Calculate the average of values stored in the rates array : The program should calculate the average of the values stored in the rates array. It then should display the average rate on the screen. Complete the program using the for statement. Save and then run the program.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd