资源描述:
《Writing Scientific Software- A Guide to Good Style (2006).pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、ThispageintentionallyleftblankWRITINGSCIENTIFICSOFTWARE:AGUIDETOGOODSTYLEThecoreofscientificcomputingisdesigning,writing,testing,debuggingandmod-ifyingnumericalsoftwareforapplicationtoavastrangeofareas:fromgraphics,weatherforecasting,andchemistrytoengineering,biology,andfinance.Scientists,engi
2、neers,andcomputerscientistsneedtowritegood,clearcode,forspeed,clarity,flexibility,andeaseofre-use.OliveiraandStewartprovidehereaguidetowritingnumericalsoftware,pointingoutgoodpracticestofollow,andpitfallstoavoid.Byfollowingtheiradvice,thereaderwilllearnhowtowriteefficientsoftware,andhowtotesti
3、tforbugs,accuracy,andperformance.Techniquesareexplainedwithavarietyofprogramminglanguages,andillustratedwithtwoextensivedesignexamples,oneinFortran90andoneinC++,alongwithotherexamplesinC,C++,Fortran90andJavascatteredthroughoutthebook.Commonissuesinnumericalcomputingaredealtwith:forexample,wh
4、ethertoallocateorpass“scratch”memoryfortemporaryuse,howtopassparameterstoafunctionthatisitselfpassedtoaroutine,howtoallocatemultidimensionalarraysinC/C++/Java,andhowtocreatesuitableinterfacesforroutinesandlibraries.Advancedtopics,suchasrecursivedatastructures,templateprogrammingandtypebinder
5、sfornumericalcomputing,blockingandunrollingloopsforefficiency,howtodesignsoftwarefordeepmemoryhierarchies,andamortizeddoublingforefficientmemoryuse,arealsoincluded.Thismanualofscientificcomputingstylewillprovetobeanessentialadditiontothebookshelfandlabofeveryonewhowritesnumericalsoftware.WRITIN
6、GSCIENTIFICSOFTWARE:AGUIDEFORGOODSTYLESUELYOLIVEIRAANDDAVIDE.STEWARTUniversityofIowacambridgeuniversitypressCambridge,NewYork,Melbourne,Madrid,CapeTown,Singapore,SãoPauloCambridgeUniversityPressTheEdinburghBuilding,Cambridgecb22ru,UKPublishedintheUnitedStatesofAmericabyCambridgeUniversityPre
7、ss,NewYorkwww.cambridge.orgInformationonthistitle:www.cambridge.org/9780521858960©CambridgeUniversityPress2006Thispublicationisincopyright.Subjecttostatutoryexceptionandtotheprovisionofrelevantcollectivelicensingagreements,noreproductionofanypartma