0% found this document useful (2 votes)
1K views

Solution Manual A Friendly Introduction To Numerical Analysis 1st Edition Brian Bradie Compress

This document provides the solution manual for Chapter 1 of the textbook "A Friendly Introduction to Numerical Analysis" by Brian Bradie. It includes the full text of one problem from Chapter 1 on calculating the linear correlation coefficient of data pairs, working through the steps of the algorithm provided in the textbook. It also summarizes the midpoint rule for approximating definite integrals using rectangles, stating the formula and defining the variables.

Uploaded by

Shubham Saharan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (2 votes)
1K views

Solution Manual A Friendly Introduction To Numerical Analysis 1st Edition Brian Bradie Compress

This document provides the solution manual for Chapter 1 of the textbook "A Friendly Introduction to Numerical Analysis" by Brian Bradie. It includes the full text of one problem from Chapter 1 on calculating the linear correlation coefficient of data pairs, working through the steps of the algorithm provided in the textbook. It also summarizes the midpoint rule for approximating definite integrals using rectangles, stating the formula and defining the variables.

Uploaded by

Shubham Saharan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Solution Manual A Friendly Introduction to Numerical Analysis 1st Edition

Brian Bradie
I

Instant download and all chapters Solution Manual A Friendly Introduction to


Numerical Analysis 1st Edition Brian Bradie SOLUTIONS MANUAL

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:

(b) Working sequentially through the steps of the algorithm, we find

STEP 1: xsum = ysum = x2sum = y2sum = xysum = 0


STEP 2: i = 1: xsum = 0 + 3 = 3; ysum = 0 + (—5) = —5
x2sum = 0 + 32 = 9; y2sum = 0 + (—5) 2 = 25
xysum = 0 + (3)( —5) = —15
2 xsum = 3 + 7 = 10; ysum = —5 + 10 = 5
x2sum = 9 + 72 = 58; y2sum = 25 + 102 125
xysum = —15 + (7)(10) = 55
3 xsum = 10 + 9 = 19; ysum = 5 + 15 = 20
x2sum =
x2sum = 58
58 +
+ 9"
9 2 = 139; y
= 139; y2sum = 125 + 15 2 350

xysum = 55 + 9(15) = 190


i = 4: xsum = 19 + 2 = 21; ysum = 20 + (—8) = 12
x2sum = 139 + 2 2 = 143; y2sum = 350 + (—8)2 = 414
xysum = 190 + (2)( —8) = 174
i = 5: xsum = 21 + 7 = 28; ysum = 12 + 11 = 23
x2sum = 143 + 7 2 = 192; y2sum = 414 + 112 = 535
xysum = 174 + (7) (11) = 251
6 xsum = 28 + 0 = 28; ysum = 23 +( — 10) = 13
x2sum = 192 + 0=192; y2sum = 535 +( —10)2 = 635
xysum = 251 + (0)( —10) = 251 xsum = 28 + 3 = 31; ysum = 13 +
7 (—4) = 9 x2sum = 192 + 32 = 201; y2sum = 635 + (—4)2 = 651
xysum = 251 + (3)( —4) = 239

STEP 3: r- 7(239) — (31)(9)=

  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

You might also like