Solution Manual A Friendly Introduction To Numerical Analysis 1st Edition Brian Bradie Compress
Solution Manual A Friendly Introduction To Numerical Analysis 1st Edition Brian Bradie Compress
Brian Bradie
I
https://testbankdata.com/download/solu
https://testbankdata.com /download/solution-manual-fr
tion-manual-friendly-introd
iendly-introduction-
uction-
numerical-analysis-1st-edition-
numerical-an alysis-1st-edition-brian-bradie/
brian-bradie/
SOLUTIONS
C H A P T E R 1 G E T T I N G S TA R TE D
1 .1 A L G O R I T H M S
8 Section 1.1
end
n • xysum — (isum)(ysum)
STEP 3: calculate r
\J
\J n
■ • x2sum — (xsum)2 • -y/n • y2sum — (ysum)2)
r
OUTPUT:
0.987
^7(201) — (31)2 V7(651) — (9)2)
OUTPUT: r = 0.987
Thus, the linear correlation coefficient of the seven given data pairs is 0.987.
4. The midpoint rule approximates the value of a definite integral using the formula
6 n
f (x)dx « 2^^/(xj),
j=1
where h =
= (b — a)/2n and xj =
= a + (2j — 1)h.
(a) Construct an algorithm to approximate the value of a definite integral using the midpoint rule.
10 Section 1.1