0% found this document useful (0 votes)
144 views

Computer Programming and Engineering Analysis by Syal, Gupta

Uploaded by

sanjay singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
144 views

Computer Programming and Engineering Analysis by Syal, Gupta

Uploaded by

sanjay singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 276
Computer Programming and Engineering Analysis SECOND EDITION LC.Syal sce raf, ‘is Grate racial Eger atari Clay Choo, S.P. Gupta ; Feta Srna Dee ot mag ae | | | a. h. wheeler & co., private limited Fir Eaten 1980 Seco Eatin 1586 Lestat Pure ‘Axis evel pf hi pation my be pote, edie! yn ten a fo yay eH, ‘cress Secunia ptecaying ecortee ener oer, ‘Show he ror wit eins fe pbs. hsb YP Chee fr A Weer C2 i tod Pott Kia Mata (W-D)P. Li, lab ‘reed at hl Bok Baden, 22D. Mag Ababa To our Parents § 4 a e e606 66. Preface to the Second Edition In preparing the second edton ofthis book he authors have bees fotuntinrecelving ‘vulublebelp and advice rom member of peo” Ble who bive bea ibd eaugh fo seh slong ee for improvement Treen ad he rt es fn bem lar op “Maia of rasta Ava FORTHA Popa bused upon Sass Approach, which are capable of ezay computing bendiog moment orate for contnvour Geass, Flne eames, pid space uses and space frais have crea Bretented In newly. teded Appendices Fand G. FORTRAN programe ‘Mish compote Inluace line orainte in poe and space order uses ‘Ee aoneluded in Appencees H aed L More commancs of DEC-Systen 2050 hve been Incaded, Example programs ta Chapter 4 have beta Bodied tut DEC Syste We bone that wth te expansion ofthe varios chapters and pact ny withthe Icon fa aaitoe coupon “Hine meth of Strectual "asian" tbe book sar eoaideabiyiprovecad will iow ieful othe eapnged in design teveree 260 ovelopmeat ot sce, 1965, De De Preface to the First Edition leone dg important ote near all pa of teat ook’ to resent rorraraming and He Bpnecng anaes Tt corer i ering of ome wit Ensneing mah ing food weak mit THe Slee eo recite cae ta teeta, ines gc ha only been DOE 1 Pee FeBote MU land ended for derrsuae Set Tifehe and precining ener vy tuearental cones have been emphasnn8 mors ane net, folate serve i unas te are PU sumer xa gars Compe DORIS Th Tuck eens handy eed ante tend aE Eatery FORTRAN Init ihe renment of aint EO tae ig oni squats inn vate, and ound a, Ee great ees eral eho, (0 i eg Cancion als Gf Enpecre woblens and eat poaranannt eeataeny prio, s PESIS “Tis reat teins, fr reasons of impli, with i coe sarang ih stetent ntmbet of 6 area gery west ic aur re eliaity With Yio woe dod she Yanga, Eepaceng alo Nabeed Da sae ON Maiae bs oles fos POEMS Tey tesa tin Some inpoant OURS TOE oe ete rede ton of nmufancons eat pA Sa Far of ean sarc, have ern ERODE, OE sod eats tg yet theo and element TES Fy a a eos coming the nat fo como We Pn ae ted St pook nay widen fo, eon eda a ote ray e equally weal for others a. “We shai ne graft if any sgyestion in inproving te tests AGE cx any evo is poled Ot Dx 1.6. $0at Dn §.P.GUrs Contents ‘COMPUTER PROGRAMMING Chapter 1 Intrtuction to Computers & Programming 1 11 The purpose of Computers 12 Typer of Compu, 3 13 Diflereat Languages of Computes, 1A. Components ofa Computer, 5 13) The Composite machine, 8 166 Mardwaze and Software, 10 17 FORTRAN Program, 10 18 Coderand Conveations, 1 Chapter 2. Programming Fondamentss B 24 22 a3 24 Operations, 17 23 Aithmetic Expressions, 19 216 Sobwcrpted variable, 21 27 Mathematical fanetons, 22 28 Arithoete statement, 26 29° Control Statements, 28 210. Endiog a FORTRAN program, 36 21 Topst and Outpot statement, 37 212 Skip Seld oF Xe, 41 213 Slashes, 41 2.14 Holle eld or H-tet, 42 248 Dimension declaration, 43 216 Comment declaration, 45 217 Equivalent declaration, 46 chapter 3 Chapter 4 Contents 18. low dagramping or Block Diagramming ot Pate raen, are ear eee 1219. Eaweutabe and Non-eeetable statement, 52 220. Malisatenert lies, $4 21. strutored Prosrammiag, $5 222 Modula proseanming. $5 225, Program overayng 3 224 Program documentation, $6 ighlphts of FORTRAN Extensions o 31 ateoduction, 60 52 Full word iteeraithmetie 60 433. Mode destaeatins 6 3A mpc statement, 6. 3S Lopial exprnion and Conditional contra, 62 Se Functions 6s 32 Common rteaat, 73 333 Taputloutpot of “scripted arabes, 3 39. Molple Retr, 77 RIO File eaten, 79 SL Creation of, 83 AI Bait Commands, 313 TOP-20 Commands, 88 Program Developneat 9s 4 Totrodvction, 98 412 Problem : Evelate aren of tingle, 96 413 Problem Evalue fnetion FOO, 99 AG Problem : Solution of Quaratceoetin, 102 5 Problem :Largn eur, 105 46 Problem: Posh Dowa method, 109 47 Metrin Operations, 10 Gt Problem Sum of mambers even and odd separates, 18 ‘problem Prime numbers, 116 Problem : Allowable steases io axial compres, 118 Problem ; Roots of an alba equation, 120 Problem: Pige hea lay, 123 Problem ; Detection computations in & ‘lily ripportd beam, [26 an 4 a Comets Chapters chapter 6 Chapter? a 4146-Program preparation nod Debugging, 127 15. Round of errs, 128 416 Linltatons, 128 Praparing Iago forthe Computer 1% SA Coding sheet, 136 52 Card, 136 53° Key Pach, 197 54 Drom coool ard forthe card punch, 141 535. Magneti Taps, Dicks aod drms, 142 ‘36 Date input in DEC-2050 system, 147 ‘Eile! Progammlog 0 61 troduction, 149 62 _ Soltion of lsat simultaneous equations, 180 63 Matrix ivertion, 156 Ga Aboot computer sis io genera, 162 65. Developed progam and aye, 164 (66 Tine sari. 165 67 Dintibated rosesing aston, 165 68 Teteratve Programming 165 69° Batch system, 166 [ENGINEERING ANALYSIS Roots of Eaeations im 1A Tatroduetion, 171 42 Real rote of algebraic equation, 172 13 Transcenteatl equations, 177 JA Solupe of siatesecu sr alsbric quis, 179 1.5 omogeeous equations, 198 116 Sigultacoueaoa-tear egntont, 200 17 Moment disiibation by sueesve over ‘elation, 202 41:8 FORTRAN progie for improving root of polyeomia by Hoes interpolation (Fale postion ‘method, 204 19° FORTRAN program for Newton Repison method, 206 {a0 FORTRAN program for Potal conéeoation, 207 a Chapter 8 oper 9 Content FORTRAN Program fo solation of simultaneous equation by Gaut Seal tration; 243, FORTRAN Program forthe tlation of simultaneous equation by Relation method, 217, FORTRAN Program for solution of sisultaeous equations by Gause-Jordan method, 218 ‘lite Diference and thle Applications Backer forse nd cet ite, 29 omen Bown condos, 296 Peer ae [Newnatk's Method ou 92 93 3 9s Introdaction, 216 ‘Moments in atcalydctermioate beams, 286 Detletion beams, 295 A ipiacerent method, 308 Tnfaece lines fo aialy determinate beam, 310 infoence ines for statically Hndeermisat stroctrs, 310 FORTRAN program of News's med for 316 oof ae computation t ECE Eereeee eee eee Contents si hare 10 Methods of Corratin ad Regeon Antsiy ——ag3, 101 Introésetion, 323, 02 Determining the way oe variable changes when another changes, 126 4103 Determining mule repreions, 334 104 Bsimating talib, 339 10S FORTRAN prosram for fitiog 4 polynomial fguation by least squares, 43, 106 FORTRAN program fr fitng © motile repression equation, 350 (Chapter 11 ala Vale Probiens 386 1.t ~Introduton, 355 112 Colocation points method 357 113 ‘Subdomain method or Partition method, 358 14 Galerkin’ metho, 19 113 Metod of eat squares, 360 1.6 FORTRAN progra for iniial value peotes, ‘by collocation peas, 362 11.7 Runge-Katt Methousy 364 M8 FORTRAN progam of RuagoxKutta forth oder method, 373 (Chapter 12 Linear Propamenag a” 121 Introduction, 377 122 Graphical method, 377 123 Sytemati tal and eror method, 355 124 Simplex method, 369 25° Guus Fordan and Sinpler bless, 395, (Chaper 13 Matix Methods of Stractera Ansys 6 Bt Introdeton, 406 132 Action and Displacements, 406 133 Egutbriam aad Compaiity, 407 134 Static and Kinematic Inetemiacy, 408 13.5 Prinipie of Soperponition, 410 136 Actions and Displacements, 410 137 Sig Conveaton, 418 13.8 Stites Method, 413 ne ‘Member Stites for a prismatic member, 420 “a0 ‘Mermber, 423 13.11 Overall Jia Stifoss Mati, «25 13.12. Equivalent Jolt Loads, 427 1213 Biample on Continuous Beam, 429 13.14 Rotation of Ate in two Dimensions, 495 12S. Plane Tros Member Stine, 438, TRIG Place Frame, 446 1217 Example of Pase Frame Problem, 448 4318 Guid Strotures, 436 1.19 Space Tease, ¢62 1320. Ae labuilt Compote Program of Fite Framed Stroetres, 463 131, Space Frame Computer Progam, 478 132 Computer Progra For lnfcece Line for Redundant (Gpace and Plane) Bridge Tras, 482 1323 feence Lines Computer Program for Redunda Space Bridge Tease, «87 13.24 Noutio, 69 Referens 96 spends A. Staite 6 Jppente B. Some Abbreviations and their meanings 01 ‘openis CA Sabroutive for Mates Taveson oy ‘Gppenis D_ recsable and Non-exectablesatrents 03 ‘opens, Sone adsioal Field speciestios sot GppmndixF. PENTA. FOR son Gppens G, SPACE. F FOR 2 ‘Anpends H PTRUSS. FOR 2 “Append I. STRUSS, FOR 7 Index 6 | | ' COMPUTER PROGRAMMING BREESE eee ee eee ee eon oe eet Imtroduction to Computers and Programming sizes, speds, expects nd involving radially diferent iotesal operating CEST The various yper of computes bring manufctred these days follows {9 1BM-Inieratons, Busisiss Machines Corporation namely ‘ Taso nor seas 050, 1094, 18M Sys 360 37 cis 1D -Coptol Data Corporstion—aamely, CDC 1604, 360,600 CO CDC Cyt 10 ees, CDC Cyber. ii) BW—Honeywell Company—samely, HW £00, Honeywell series eo'eel 66 (G0) 1CL—Inerntions! Computers Limited namely, IL 1900 seis. {G) UNIVAC_Universal Automatic Compuer—nazely, UNIVAC 00 erie 7 (68) XDS—Xerox Data Systems—namely, XDS Sigma 9. wi) ECL —Blecopi Corporation of asia Lite, Hyderabad — Ee ys TOG Id, TDS Siz, TDC 31618 which TO stands {or Teoabey Digital Computer (ii) DECDisia Egsiment Corporation, Mayes, Masschurts- (HD PEC amehy, DEC 310, 208, 2030. Tee Maximum Memory Capaiy of Different Computer Models “SLNa Type of Computer Mania Cove Capacity 1 TOM System 570165 168K of 32 bit words 2 CDC Cyber 16 123K of 6 bit words a HW so780 1024 K of 36 bt words 4 cL 19065 512K of 24 Bit words s UNIVAC 3110 1024 K of 36 bt words 6 XDS Sigma 9 512K of 32 bi words 1 DEC 2050, 286K of 35 bt words sobably the mont willy wed sre of computes atthe pat sine, Sa Ba Bytes ono 30 erieh TBM sytem 37.165 it Bea RMSE ance than Systems. Honepeel ioe eet motel A ee Se of smukrcng eed Tie goters have picnsered io the ares of mules cay come Introduction 19 Computers ond Programming 5a is an orion in Great Bria, sanuctarng, ICL 1900 si fg ‘oaputers which have not found moch favour in India a yes Now. Spt Baron Corporation of aga La yleraad alto manuacter a) distal compote seen n TOC S12 See However the TDC some @ Jule haven gine moch importance s compare othe oer ate Tes" ote tet of eoputen work mentouse awe DEC 209 td BORRGUGART

You might also like