




已阅读5页,还剩26页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
answers for exercisesnumerical methods using matlabchapter 1p10 2. solution (a) produces an equation . solving it gives the roots and . since and , thus, both and are fixed points of . (b) (d) the iterative rule using is. the results for part (b)-(d) with starting value and are listed in table 1.table 101.90000.10000.050003.8000.20000.050011.79500.20500.102513.98000.02000.005021.56900.43100.215523.99980.00020.000131.04510.95490.477534.00000.00000.0000 (e) calculate values of at and ., and . since is continuous, there exists a number such that for all . there also exists a number such that for all . therefore, is an attractive fixed point. the sequence generated by with starting value converges to . is a repelling fixed point. the sequence generated by with starting value does not converge to .p11 4. find the fixed point for : gives. find the derivative: . evaluate and : , . both and gives . there is no reason to find the solution(s) using the fixed-point iteration. p11 6. proof p21 4. false position method: assume thatcontains the root. the equation of the secand line through and is . it intersects x-axise at (eq. 1.36, p18), ;since , then .similarly, we have, , 10. bisection method: assume that contains the root. then .(a) , then .since , then .similarly, we can obtain . the results are listed in table 3. table 3nanf(an)bnf(bn)cnf(cn)03-0.1425 41.15783.50.374613-0.14253.50.37463.250.108823-0.14253.250.10883.125-0.016633.125-0.01663.250.10883.18750.045943.125-0.01663.18750.04593.15630.014753.125-0.04793.15630.01473.1406-9.4265e-004 the values of tan(x) at midpoints are going to zero while the sequence converges (b) since , , there exist a root in .the results using bisection method are listed in table 4.table 4nanf(an)bnf(bn)cnf(cn)011.55743-0.14252-2.1850111.55742-2.18501.514.101421.514.10142-2.18501.75-5.520431.514.10141.75-5.52041.625 -18.430941.514.10141.625-18.43091.5625120.532551.5625120.53251.625-18.43091.5938-43.5584 although the sequence converges, the values of tan (x) at midpoints are not going to zero. p36 2. has two zeros . ()the first derivative of is.the newton-raphson iterative function is .the newton-raphson formula is , . the results are listed in table 5 with starting value p0=1.6 and p0=0.0 respectively.table 5p0p1p2p3p41.62.52732.31522.30282.30280.0-3.0000-1.9615-1.1472-0.0066obviously, the sequence generated by the starting value p0=0.0 does not converge.11. use newton-raphson method to solve .the derivative of is .newton-raphoson formula is , .since is a zero of and ,the sequence generated by the recursive formula will converge to for any starting value , where .answers for exercisesnumerical methods using matlabchapter 2p44 2. solution the 4th equation yields . substituting to the 3rd equation gives . substituting both and to the 2nd equation produces . is obtained by sustituting all , and to the 1st equation. the value of the determinant of the coefficient matrix is .4. proof (a) calculating the product of the two given upper-triangular matrices gives. it is also an upper-triangular matrix. (b) let and where and when . let . according to the definition of product of the two matrices, we have for all . when because and when . that means that the product of the two upper-triangular matrices is also upper triangular. 5. solution from the first equation we have . substituting to the second equation gives . is obtained from the third equation and is attained from the last equation.the value of the determinant of the coefficient is 7. proof the formula of the back substitution for an upper-triangular system is and for .the process requires divisions, multiplications, and additions or subtractions. p53 1. solution using elementary transformations for the augmented matrix gives that means that is equivalent to the set of solutions is 11. solution using the algorithm of gaussian elimination gives the set of solutions of the system is obtained by the back substitutions and (chasing method for solving tridiagonal linear systems)14. (a) (i) solution applying gaussian elimination with partial pivoting to the augment matrix results inthe set of solutions is and 15. solution the hilbert matrix is defined by where for .(a) the inverse of the hilbert matrix isthe exact solution is .(b) the solution is . 1 h is ill-conditioned.a miss is as good as a mile. (失之毫厘,谬以千里)p62 5 (a) solving gives . from we have . the product of and is . that means (b) similarly to the part (a), we have , , and . 6. , p72 7. (a) jacobi iterative formula is for results for, are listed in table 2.1 with starting value . table 2.10(0, 0, 0)1(-8.0000, 13.0000, 0.3333)2(57.3333, 45.3333, -4.5000)3(214.1667, -220.8333, 11.8889)the numerical results show that jacobi iteration does not converge.(b) gauss-seidel iterative formula is for results, are listed in table 2.2 with starting value table 2.20(0, 0, 0)1(-8, 45, -10)2(207, -825, 207)3(-3929, 15934, -3965) gauss-seidel iteration does not converge as well.reasons: conside the eigenvalues of iterative matricessplit the coefficient matrix into three matrices.the iterative matrix of jacobi iteration isthe spectral raduis of is. so jacobi method doesnot converge.similarly, the iterative matrix of gauss-seidel iteration is .the spectral radius of is 1. so gauss-seidel method does not converge. 8. (a) jacobi iterative formula is for for are listed in table 2.3 with starting value . table 2.3k000013.25001.60000.333322.93332.18331.150032.99171.95670.947242.99762.00891.004452.99891.99860.997762.99982.00020.999972.99992.00000.999983.00002.00001.000093.00002.00001.0000jacobi iteration converges to the solution (3, 2, 1)(b) gauss-seidel iterative formula is for for are listed in table 2.4 with starting value table 2.4k000013.25002.25001.041722.94791.98130.985833.00112.00310.999942.99921.99990.999853.00002.00001.000063.00002.00001.000073.00002.00001.000083.00002.00001.000093.00002.00001.0000 gauss-seidel iteration converges to the solution (3, 2, 1)answers for exercisesnumerical methods using matlabchapter 3p99 1. solution (a) the nth order derivative of is . therefore, , and.(b) estimating the remainder term gives for .(c) substituting to gives and .by using taylor polynomial we havep108 1. (a) using the horners method to find gives4-0.020.1-0.21.66-0.080.08-0.48-0.020.02-0.121.18 so =1.18.(b) from part (a) we have . can be also obtained by using horners method. 4-0.020.02-0.12-0.08-0.24-0.02-0.06-0.36 so =-0.36another method: 4-0.02*30.1*2-0.2-0.24-0.16-0.06-0.04-0.36 hence, p(4)=-0.36.(c) find and firstly. 4-0.02/40.1/3-0.2/21.660-0.020.0532-0.18725.8912-0.0050.0133-0.04681.47285.8912 1-0.02/40.1/3-0.2/21.660-0.0050.0283-0.07171.5883-0.0050.0283-0.07171.58831.5883then 4.3029.(d) use horners method to evaluate p(5.5)5.5-0.020.1-0.21.66-0.1100-0.0550-1.4025-0.02-0.0100-0.25500.2575 hence, p(5.5)=0.2575.(d) let . there are 4 coefficients needed to found. substituting four known point , i=1, 2, 3, 4, into gives four linear equations with unknown , i=1, 2, 3, 4. the coefficients can be found by solving this linear system: p120 1. the values of f(x) at the given points are listed in table 3.1: table 3.1x-1012f(x)-1018(a) find the lagrange coefficient polynomials the interpolating polynomial is .(b) .(c) (d) . (e) 7. (a) note that each lagrange polynomial is of degree at most 2 and is a combination of . hence is also a polynomial of degree at most 2.(b) for each , , the lagrange coefficient polynomial , and for , . therefore, .(c) is a polynomial of degree and has zeroes. according to the fundamental theorem of algebra, for all x.9. let . is a polynomial of degree . is degree with at n+1 points implies that has n+1 zeroes. therefore, for all x, that is, for all x.p131 6. (a) find the divided-difference table: kxkf f,f, ,f, , ,f, , , ,01.03.6012.01.80-1.8023.01.20-0.60.634.00.90-0.30.15-0.1545.00.72-0.180.06-0.030.03(b) find the newton polynomials with order 1, 2, 3 and 4., , ,.(c)(d) the results are listed in table 3.2table 3.2xkf(xk)p1 (xk)|p1 (xk)- f(xk)|p2 (xk)|p2 (xk)- f(xk)|p3 (xk)|p3 (xk)- f(xk)|p4 (xk)|p4 (xk)- f(xk)|2.51.44000.90000.5400 1.3500 0.0900 1.4062 0.0338 1.3444 0.0956 3.51.0286-0.90001.92861.35000.32141.06880.04021.32190.2933 p143 6. , . the derivative of is . yields . evaluating at and gives , , and . therefore, , .10. when , the chebyshev nodes are and .calculating the lagrange coefficient polynomials based on can produce the following results:the proof is finished.answers for exercisesnumerical methods using matlabchapter 4p157 1(a). solution the sums for obtaining normal equations are listed in table 4.1 table 4.1-211.24-20.04-121.91-20.01032.6000.16133.3130.09244.04800131070.3the normal equations are . then .the least-squares line is . p158 4. proof suppose the linear-squares line is where a and b satisfies the normal equations and . meas thatthe point lies on the linear-squares line .5. first eliminating b on the normal equations and gives where .substituting a into the first equation gets .note that .simplifying b gives .8(b). the sums needed in the normal equations are listed in table 4.22.05.94.016.06423.65.2927.984114843.907100.98612.610.76.7645.6976308.972.332188.06322.913.78.4170.7281594.8115.217334.12933.217.010.24104.85761073.7174.08557.0561355.634.7265.32189.5429.1361227.4 hence, and . , . fits the given data better.p171 2(c). the sums for normal equations are listed in table 4.3. -2104-816-2040-111-11-1100000001211122294816183602210034-179using the formula produces the system with unkowns a, b, and csolving the obove system gives the fitting curve is p172 4. (a) translate points in x-y plane into x-y plane using . the results are listed in table 4.4. table 4.4-16.62-11.89011-1.890103.9401.37120012.1710.774710.774721.3520.300140.600230.893-0.11659-0.349654.219615-0.8648the normal equations give the system then , . thus .the fitting curve is , and .(b) translate points in x-y plane into x-y plane using . the results are listed in table 4.5. table 4.5-16.62-10.15111-1.890103.9400.25380012.1710.460810.774721.3520.740740.600230.8931.12369-0.349652.7300155.1620 the normal equations give the system then , . the fitting curve is and .(c) it is easy to see that the exponential function is better comparing with errors in part (a) and part (b).p188 1. (a) derivativing gives . substituting the conditions into the derivative pruduces the system of equations (b) solving the linear system of equations in (a) gives . the cubic polynomial is . figure: graph of the cubic polynomial4. step 1 find the quantities: , , , step 2 use to obtain the linear system.the solutions are .step 3 compute and using clamaped boundary. , step 4 find the spline coefficients , ; , ;, ;step 5 the cubic spline is for , for , and for .5. calculate the quantities: , , , . ( same values as ex. 4)substituting , and into givessolve the linear equation to obtain in addition, use formula (4. 65) to find the spline coefficients:, ;, ;, .therefore, , for ; , for for .answers for exercisesnumerical methods using matlabchapter 5p209 1(b). solution letthe result of using the trapezoidal rule with h=1 is using simpsons rule with h=1/2, we havefor simpsons 3/8 rule with h=1/3, we obtainthe result of using the booles rule with h=1/4 is4. proof integrate over .=.the quadrature formula is called the trapezoidal rule.6. solution the simpsons rule is . it will suffice to apply simpsons rule over the interval 0, 2 with the test functions and . for the first four functions, since, ,the simpsons rule is exact. but for , .therefore, the degree of precision of simpsons rule is n=3.the simpsons rule and the simpsons 3/8 rule have the same degree of precision n=3.p220 3(a) solution whenfor , . the values of at 11 sample points (m=10) are listed in the table 5.1:table 5.1x01.0g(x)00.00100.00810.02800.07100.15630.31790.60981.10841.91563.1623 (i) using the composite trapezoidal rule , the computation is =0.1576+0.4216=0.5792. (ii) using the composite simposons rule , the computation is =0.5672.7. (a) because the formula is exact for the three functions , , and , we obtain three equations with unkowns , , and :, , .solving this linear system gives , and .thus, (b) let and denote then the change of variable translates into 0, 2 and converts the integral expresion into . hence,.the formula is known as the simpsons rule over .8(a). 9(a). p234 1(a) let . the romberg table with three rows for is given as follows:jtrapezoidal rulesimpsons rulebooles rule0-0.0419110.044180.0728820.38000.49190.5198where ,2. proof if , then and.9. (a) let . implies . thus . (b) let . implies . thus .10. (a) do variable translation. then . that means the two integrals and have the same numerical value.(b) let and . use means that the truncation error is approximately.note that. it means . but for , is not true for all and any integer . thus the romberg sequence is faster for than for even though they have the same numerical value.p242 1 (a) applying the change of variable to gives.thus the two integrals are and equivalent.(b) =0.0809 +58.5857=58.6667 if using to approximate the integral, the result is6. analysis: the fact that the degree of precision of n-point gauss-legendra integration is 2n-1 implies that the error term can be represented in the form .(a) since, and implies . thus =.(b) and implies . thus =.7. the nth legendre polynomial is defined bythe first five polynomials arethe roots of them are same as ones in table 5.8.11. the conditions that the relation is exact for the functions means the three equations:sloving the system gives . is called three-point gauss-legendre rule.answers for exercisesnumerical methods using matlabchapter 6p249 1. (a) proof differentiate . substitute and into the right-hand side of the equation . (b) solution let. then for any . so, the lipschitz constant is .12 . integrate both side of over a, b: . then, , where is the solution of the i. v. p , for with . that means that the definite integral can be computed using the two values and of the solutionof the given i. v. p.14. solution separate the two variables of the equation into the form .integrate and yeild the general solution.the initial-value condition means that .the solution for the i. v. p. is .p257 3.
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 浙江省台州市路桥区新桥中学浙教版高一信息技术必修一教案
- 2025年粮站员工劳动合同范本
- 2025【合同范本】夫妻双方财产划分合同
- 2025年上海市租房合同范本(官方版)
- 印刷厂叉车工工作制度
- 2025共同借款合同范本
- 化肥厂车间工具管理规章
- 2025届毕业生需关注的合同法关键条款
- 《短歌行》和《归园田居》-出与入诗人的责任与选择比较鉴赏 教学设计 2024-2025学年统编版高中语文必修上册
- 化肥生产技术改造合同协议
- 机加工安全生产培训考核试题及答案(班组级)(精)
- 电梯从业证考试试题及答案解析
- 第二十四届上海市青少年计算机创新应用竞赛 python校内选拔试题及答案
- 2024年武汉商学院公开招聘辅导员笔试题含答案
- 江苏省宿迁市泗阳县2024-2025学年高二下册期末调研测试语文试题【附答案】
- 《编程猫系列》第1课-Hello-编程猫(课件)
- GB 16899-2011自动扶梯和自动人行道的制造与安装安全规范
- 非典型骨折课件
- 封闭区倒塌围墙修复施工方案
- 户口本翻译样本-Word范文-Word范文
- 企业融资计划书2022
评论
0/150
提交评论