Develop a user-friendly computer program for adaptive quadrature based on Fig. 22.5. Test it by solving Prob.
Question:
Fig 22.5.
Transcribed Image Text:
FUNCTION quadapt(a, b) tol 0.000001 c= (a + b)12 fa-f(a) fc f(c) fb-f(b) quadapt qstep(a, b. tol. fa, fc, fb) END quadapt (main calling function) (initialization) FUNCTION qstep(a, b, tol, fa, fc, fb) (recursive function) h2 h112 c-a b)/2 fd= f( (a + c)/2) Simpson's 1/3 rule) 12=h2/6 * (fa + 4 * fd + 2 * fc + 4 * fe + fb) IF 12 11 S tol THEN (terminate after Boole's rule) ELSE I-12+ (12- I1)/15 (recursive calls if needed) la = qstep(a, c, tol, fa, fd, fc) Ib= qstep(c. b. tol. fc, fe, fb) I = Ia + Ib END IF qstep = 1 END qstep
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 77% (9 reviews)
Here is a VBA program to implement the algorithm from Fig 225 It is set up to evaluate the integral from Prob 2210 Option Explicit Function quadadapta ...View the full answer
Answered By
Milan Mondal
I am milan mondal have done my Msc in physics (special astrophysics and relativity) from the University of burdwan and Bed in physical science from the same University.
From 2018 I am working as pgt physics teacher in kendriya vidyalaya no2 kharagpur ,west bengal. And also I am doing advanced physics expert in chegg.com .also I teach Bsc physics .
I love to teach physics and acience.
If you give me a chance I will give my best to you.
5.00+
4+ Reviews
10+ Question Solved
Related Book For
Numerical Methods for Engineers
ISBN: 978-9352602131
7th edition
Authors: Steven C. Chapra, Raymond P. Canale
Question Posted:
Students also viewed these Numerical Analysis questions
-
Develop a user-friendly computer program for the classical fourth-order RK method. Test the program by duplicating Example 25.7.
-
Develop a user-friendly computer program for systems of equations using the fourth-order RK method. Use this program to duplicate the computation In Example 25.10.
-
Develop a user-friendly computer program for the simple explicit method from Sec. 30.2. Test it by duplicating Example 30.1.
-
Find the point-slope form of the line pass- ing through the given points. Use the first point as (x 1 , y 1 ). (-3,4), (2,5)
-
Suppose the rock bed in Problem 7.37 has been completely discharged and the entire bed is at 10?C. Hot air at 90?C and 0.2 m/s is then used to recharge the bed. How long will it take until the first...
-
The following table shows the quantities of bottled water demanded and supplied per week at different prices in a particular city: a. Draw the supply and demand curves for this market, and identify...
-
Analyze the wine quality of young red wines data in Table B. 19 for multicollinearity. y X2 X3 X4 x6 X7 Xg Xg x10 19.2 0 3.85 66 9.35 5.65 2.40 3.25 0.33 19 0.065 18.3 0 3.73 79 11.15 6.95 3.15 3.80...
-
Silver Ridge Plumbing's year end is October 31. The company's trial balance prior to adjustments follows: Additional information: 1. The equipment has an expected useful life of ten years. The...
-
Golf Academy, Incorporated, provides private golf lessons. Its unadjusted trial balance at December 3 1 , 2 0 2 1 , follows, along with information about selected accounts. Account Names Debit...
-
Davis has the following obligations at December 31, 2025: Note payable due in monthly installments of $50,000, plus interest, through November 30, 2026 Note payable due in monthly installments of...
-
The following data was collected for a cross-section of a river (y = distance from bank, H = depth, and U = velocity): Use numerical integration to compute the (a) average depth, (b) cross-sectional...
-
Prove that Eq. (22.15) is equivalent to Boole's rule. Eq . 22.15 [I(h2) I(h)] 15 I(h2) + %3D I =
-
With concerns of increased competition, Genatron is planning in case its 2015 sales fall by 5 percent from their 2014 levels. If cost of goods sold and the current asset and liability accounts...
-
For a defendant to be held liable for false imprisonment a. a plaintiff must be actually incarcerated. b. physical force must be used. c. a plaintiff must be aware of their confinement. d. all of the...
-
Does a person have to be aware of another persons mental ability for consent to apply?
-
During closing arguments an attorney a. summarizes the facts of the case. b. shows how the evidence established each of the legal elements in the case. c. tries to convince the jury that their client...
-
True Or False Tort law and criminal law share the same purpose and historical derivations.
-
How does a battery differ from an assault?
-
A residential photo voltaic installation is described as producing 5000 kilowatt hours per year. What is a kilowatt hour per year in SI units? What might be the purpose of using kWh/y rather than the...
-
(a) Find the equation of the tangent line to f(x) = x 3 at the point where x = 2. (b) Graph the tangent line and the function on the same axes. If the tangent line is used to estimate values of the...
-
Develop, debug, and test a program in either a high-level language or macro language of your choice to solve a system of equation with Gauss elimination with partial pivoting. Base the program on the...
-
Use the rules of matrix multiplication to prove that the Eqs. (10.7) and (10.8) follow from Eq. (10.6).
-
(a) Use nave Gauss elimination to decompose the following system according to the description in Sec. 10.2. 10x1 + 2x2 x3 = 27 3x1 6x2 + 2x3 = 21.5 x1 + x2 + 5x3 = 21.5 Then, multiply the...
-
Start Access. Open the downloaded Access file named Exp19_Access_Ch03_ML1_Small_Business_Loans.accdb . Grader has automatically added your last name to the beginning of the filename. Note this file...
-
Commercial law in Canada list the questions should ask for this case: EMPLOYMENT Holm V. Agat Laboratories Ltd Bailey Gakhal, Brandon Longstreet, Colton Yaremko, Levi Johnson, & Nyah Foote October...
-
What are the underlying molecular processes that govern the remarkable adaptability of prokaryotes to extreme environments, such as those characterized by high temperatures, acidity, or salinity?
Study smarter with the SolutionInn App