Fortran77数值计算f2-3.pdf

  1. 1、本文档共9页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Fortran77数值计算f2-3

34 Chapter 2. Solution of Linear Algebraic Equations S a m p le p a g e fr o m N U M E R IC A L R E C IP E S IN F O R T R A N 7 7 : T H E A R T O F S C IE N T IF IC C O M P U T IN G ( IS B N 0 - 5 2 1 - 4 3 0 6 4 - X ) C o p y r ig h t ( C ) 1 9 8 6 - 1 9 9 2 b y C a m b r id g e U n iv e r s ity P r e s s . P r o g r a m s C o p y r ig h t ( C ) 1 9 8 6 - 1 9 9 2 b y N u m e r ic a l R e c ip e s S o ftw a r e . P e r m is s io n is g r a n te d fo r in te r n e t u s e r s to m a k e o n e p a p e r c o p y fo r th e ir o w n p e r s o n a l u s e . F u r th e r r e p r o d u c tio n , o r a n y c o p y in g o f m a c h in e - r e a d a b le file s ( in c lu d in g th is o n e ) to a n y s e r v e r c o m p u te r , is s tr ic tly p r o h ib ite d . T o o r d e r N u m e r ic a l R e c ip e s b o o k s o r C D R O M s , v is it w e b s ite h ttp ://w w w .n r .c o m o r c a ll 1 - 8 0 0 - 8 7 2 - 7 4 2 3 ( N o r th A m e r ic a o n ly ) , o r s e n d e m a il to d ir e c tc u s ts e r v @ c a m b r id g e .o r g ( o u ts id e N o r th A m e r ic a ) . The advantage of Gaussian elimination and backsubstitution over Gauss-Jordan elimination is simply that the former is faster in raw operations count: The innermost loops of Gauss-Jordan elimination, each containing one subtraction and one multiplication, are executed N 3 and N 2M times (where there are N equations and M unknowns). The corresponding loops in Gaussian elimination are executed only 1 3N 3 times (only half the matrix is reduced, and the increasing numbers of predictable zeros reduce the count to one-third), and 1 2N 2M times, respectively. Each backsubstitution of a right-hand side is 1 2N 2 executions of a similar loop (one multiplication plus one subtraction). For M  N (only a few right-hand sides) Gaussian elimination thus has about a factor three advantage over Gauss-Jordan. (We could reduce this advantage to a factor 1.5 by not comput

文档评论(0)

l215322 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档