i) Calculate integrals for funtions analytically. ii) Write computer code finding integrals numerically by following methods....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
i) Calculate integrals for funtions analytically. ii) Write computer code finding integrals numerically by following methods. For all methods, obtain a table which contains number of data N, integration result for current N number, and error between current integration result and exact analytical solution. Use N = 2,5, 10,50, 100 values. a) Directly use function values for each interval, Jf(x)dx Σfx) Δxμ b) Trapezodial rule. c) Simpson's 1/3 rule. iii) Make comments about results and comparisons about methods. fi(x) = 4x3 + 5x2 + x – 2; x E [1,5] x2 f2(x) = х€ [2, 20] 2x3 + 3 f3(x) = 2x2e-*; x € [0,4] i) Calculate integrals for funtions analytically. ii) Write computer code finding integrals numerically by following methods. For all methods, obtain a table which contains number of data N, integration result for current N number, and error between current integration result and exact analytical solution. Use N = 2,5, 10,50, 100 values. a) Directly use function values for each interval, Jf(x)dx Σfx) Δxμ b) Trapezodial rule. c) Simpson's 1/3 rule. iii) Make comments about results and comparisons about methods. fi(x) = 4x3 + 5x2 + x – 2; x E [1,5] x2 f2(x) = х€ [2, 20] 2x3 + 3 f3(x) = 2x2e-*; x € [0,4]
Expert Answer:
Answer rating: 100% (QA)
deinne the function f1 using function handle f1x 4x35x2x2 a1 b5 dispTable for simpson for the function f1 fprintfN I err fprintf for N251050100 exact value dxbaN step size xadxb exactsumf1xdx call the ... View the full answer
Related Book For
Posted Date:
Students also viewed these mathematics questions
-
Use Romberg integration to approximate the integrals in Exercise 1 to within 106. Compute the Romberg table until either |Rn1,n1 Rn,n| In Exercise 1 15 r In x dx xed .0.35 dx r--4 r- xsinx dx e sin...
-
Use the function f : R R defined by f (x) = { x/2 + x2 sin (1/x) x 0, 0 x = 0.
-
Use Romberg integration to approximate the integrals in Exercise 2 to within 106. Compute the Romberg table until either |Rn1,n1 Rn,n| In Exercise 2 (cos a)2 dx 0.75 x In(x 1) dx ((sin x) - 2xsinx...
-
Line A: y = 3 0.6x Line B: y = 4 x a. Graph the linear equations and data points. b. Construct tables for x, y, Ëy, e, and e 2 similar to Table 4.4 on page 151. c. Determine which line fits the...
-
What are the three revenue synergies that may be obtained by an FI from domestic geographic expansion?
-
1. Was the decision not to install the rubber bladder appropriate? Use the 5-question framework to support your analysis. 2. What faults can you identify in Fords costbenefit analysis? 3. Should Ford...
-
Almetals, Inc., a Michigan company, entered into a contract with the German firm Wickeder Westfalenstahl regarding the purchase of clad metal, a specialty metal used in a variety of industries but...
-
Martys Barber Shop has one barber. Customers have an arrival rate of 2.2 customers per hour, and haircuts are given with a service rate of 5 per hour. Use the Poisson arrivals and exponential service...
-
What are the key components of a relational database management system? Why are relational database management systems different from database models that preceded the relational model?
-
Ariana and Nicholas Peterson are about to construct their income and expense statement for the year ending December 31, 2020. They have put together the following income and expense information for...
-
On a typical day there are 500 people skiing at the Somerset Skiway and the average customer spends 6 hours at the Skiway (for the purposes of this problem, let's assume that this entire 6 hours is...
-
Ansel is interested in environmental preservation. To that end, he has purchased vast amounts of land and kept it as undeveloped as possible. Recently, Ansel purchased 200 acres of land in Ohio at a...
-
Suppose the base case NPV of the project is $1,143,650.00 and the NPV is $1,362,406.00 when the sales volume is increased by 5,000 units. The sensitivity of the base case NPV to changes in the sales...
-
Company-A receives data on its customers' consumption patterns daily. The company cleans and curates the data once the information is obtained. Company-A developed a simple but powerful proprietary...
-
Corporate strategy indicates the choice of an industry or a set of industries in which the firm operates True False
-
File 70 80 9 9 00 1 0 12 O 13 O 14 O 15 16 17 0 18 O 19 20 Home Insert Draw Design Transitions Animations Slide Show Record B. 25 Units Jack is prescribed tinzaparin 175 units oper kg. Referring to...
-
At the price of 40$ quantity demanded is 30; and at a price ofquantity demanded is 20. Using the Midpoint formula calculate theprice ,50$ ..elasticity of demand and determine theelasticity 0 answers
-
From 1970 to 1990, Sri Lanka's population grew by approximately 2.2 million persons every five years. The population in 1970 was 12.2 million people.What is the best formula for P, Sri Lanka's...
-
Write the convene and the contrapositive to the following statements. (a) If it rains today, then I will stay home from work. (b) If the candidate meets all the qualifications, then she will be hired.
-
Find all vectors perpendicular to the plane determined by the three points (1, 3, 5), (3, - 1, 2), (4, 0, 1).
-
In problems 25-30, find the limits if And (See Example 4). 1. 2. 3. lim f(x) = 3 lim g(x) = -1 lim VF(x)g(x) 2f(x) 3g(x) f(x)+g(x) inm xa lim Vst) fx) +3)
-
Rewrite the Gross-Pitaevskii equation and the mean field energy, see equations (11.2.21) and (11.2.23), for an isotropic harmonic oscillator trap with frequency \(\omega_{0}\) in a dimensionless form...
-
The energy levels of an imperfect Fermi gas in the presence of an external magnetic field \(\boldsymbol{H}\), to the first order in \(a\), may be written as...
-
Solve the Gross-Pitaevskii equation (11.2.23) in a harmonic trap for the case when the scattering length \(a\) is zero. Show that this reproduces the properties of the ground state of the...
Study smarter with the SolutionInn App