Write a program to compute the integral I=ff(r)dr where f(x)= ao+ar+ az + a3z+ar+asz and do...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program to compute the integral I=ff(r)dr where f(x)= ao+ar+ az + a3z+ar+asz and do ==0.84885406 01 = 31.51924706 02 =-137.66731262 03 ==240.55831238 04 = -171.45245361 as = 41.95066071 with a=0.0 and b= 1.5 using all the following approaches (a) exact integration (when the integrand is a polynomial function, the integral can be exact). (b) trapezoidal rule with the number of sub-intervals n,= (1,2,3,.,12) = (c) Simpson's one-third rule with the number of sub-intervals n, (2, 4, 6, 8, 10, 12) (d) Simpson's three-eights rule with the number of sub-intervals n, (3,6,9,12} M Please tabulate your results for (b), (c) and (d) and compare your results with the exact solution you obtained in (a). Show the order of accuracy of the methods used in (b), (c) and (d) by computing log(ei/e-1) log(n-1/n,) order= i= 0, 1,... where is the absolute error between the numerical integration and the exact solution n, is the number of intervals. Note the above formula becomes calculable only when 121 Write a program to compute the integral I=ff(r)dr where f(x)= ao+ar+ az + a3z+ar+asz and do ==0.84885406 01 = 31.51924706 02 =-137.66731262 03 ==240.55831238 04 = -171.45245361 as = 41.95066071 with a=0.0 and b= 1.5 using all the following approaches (a) exact integration (when the integrand is a polynomial function, the integral can be exact). (b) trapezoidal rule with the number of sub-intervals n,= (1,2,3,.,12) = (c) Simpson's one-third rule with the number of sub-intervals n, (2, 4, 6, 8, 10, 12) (d) Simpson's three-eights rule with the number of sub-intervals n, (3,6,9,12} M Please tabulate your results for (b), (c) and (d) and compare your results with the exact solution you obtained in (a). Show the order of accuracy of the methods used in (b), (c) and (d) by computing log(ei/e-1) log(n-1/n,) order= i= 0, 1,... where is the absolute error between the numerical integration and the exact solution n, is the number of intervals. Note the above formula becomes calculable only when 121
Expert Answer:
Related Book For
Fundamentals Of Electric Circuits
ISBN: 9780073301150
3rd Edition
Authors: Matthew Sadiku, Charles Alexander
Posted Date:
Students also viewed these mathematics questions
-
Hidden Markov models (HMM) are widely used in Bioinformatics. (i) In a HMM when would you use the Baum-Welch algorithm, and when the Viterbi algorithm, and why? Give biologically motivated examples....
-
The Julian calendar was a reform of the Roman calendar introduced by Julius Caesar in 46 BC (708 AUC). It took effect in 45 BC (709AUC). It was the predominant calendar in most of Europe, and in...
-
Which of the following is part of Walmarts strategy regarding its supply chain? a) Acquiring e-commerce technology and expertise. b) Opening central warehouses. c) Changing how and when inventory is...
-
On March 1, 2019, Parnevik Company sold goods to Goosen Inc. for $660,000 in exchange for a 5-year, zero-interest-bearing note in the face amount of $1,062,937 (an inputed rate of 10%). The goods...
-
The fair value of Wallis, Inc.'s depreciable assets exceeds their book value by $50 million. The assets have an average remaining useful life of 15 years and are being depreciated by the...
-
Axial dispersion in turbulent flow. Taylor showed that the following expression is suitable for the calculation of the axial dispersion coefficient for turbulent flow in a pipe: \[D_{\mathrm{E}}=10 R...
-
Starwood Hotels (Starwood) owns and operates many hotel properties under well-known brand names, including Sheraton, W, Westin, and St. Regis. Starwood focuses on the upper end of the lodging...
-
Basic on the provided graph and Link. Please explain: 1. What do you think most people will notice first in the graph? 2. If the graph was easy or hard to understand, why? 3. Suggest one change to...
-
What is the overall effect on the consolidated financial statements if the FC is the functional currency instead of the USD? What is the impact on the subsidiary's liquidity, solvency and...
-
Ge is an indirect bandgap semiconductor. Describe the two-step and one-step light absorption processes in Ge at different wavelength.
-
Speedy Smartphone plans to price its new model at $999, which is $599 in cost of materials and labor plus $400 in margin and profit. The cost is unavoidable, and they plan to drop the price by $100...
-
Lucas Trottier sold machinery to a corporation in which he is the controlling shareholder. He elected to use ITA 85(1). The FMV of the equipment is $ 20 comma 400, and its UCC is $ 15 comma 300. The...
-
What is the most widely used method to determine the required rate of return on common equity? Explain.
-
CWRU Biosciences has just completed their most recent year with the following results (in thousands): Sales 1,000 Net income 20 Dividends 0 Net assets 250 Equity 200 The company forecasts that it...
-
What type of non-financial information is often used by managers to improve customer satisfaction? Explain.
-
Ship A sails from A to B, on a bearing of 330 for a distance of 24km. Ship B sails from A to C on a bearing of 225 for a distance of 27km. Find the distance and the bearing of C from B.
-
What are the four types of poultry production systems? Explain each type.
-
For the network in Fig. 2.88, find the current, voltage, and power associated with the 20-k resistor?
-
For the following voltage and current phasors, calculate the complex power, apparent power, real power, and reactive power. Specify whether the pf is leading or lagging. (a) V = 22030 V rms, I =...
-
An electric pencil sharpener rated 240 mW, 6 V is connected to a 9-V battery as shown in Fig. 2.138. Calculate the value of the series-dropping resistor Rx needed to power the sharpener. Figure 138...
-
Verify that the log-likelihood of model (7.7) is \(\sum_{i=1}^{k}\left[n_{i} \lambda-\exp (\lambda) ight]\). (a) Compute MLE of \(\lambda\). (b) Compute the Pearson chi-square statistic and compare...
-
Think about the general concept of a relationship, not necessarily in a business setting, but just relationships in general between any two parties. What aspects of relationships are inherently...
-
What is value? In what ways does a relationship selling approach add value to your customers, to you the salesperson, and to your sales organization?
Study smarter with the SolutionInn App