ENGLISH

C Programming and Numerical Analysis: An Introduction

Book information

Publisher
Morgan & Claypool Publishers
Year
2018
ISBN
1681733110, 9781681733111
Language
english
Format
PDF
Filesize
4 MB (4278463 bytes)
Series
Synthesis Lectures on Mechanical Engineering
Pages
200\237
Time added
2021-10-01 13:19:13

Description

This book is aimed at those in engineering/scientific fields who have never learned programming before but are eager to master the C language quickly so as to immediately apply it to problem solving in numerical analysis. The book skips unnecessary formality but explains all the important aspects of C essential for numerical analysis. Topics covered in numerical analysis include single and simultaneous equations, differential equations, numerical integration, and simulations by random numbers. In the Appendices, quick tutorials for gnuplot, Octave/MATLAB, and FORTRAN for C users are provided. Cover Half title Synthesis Lectures on Mechanical Engineering Copyright Title Abstract Contents Preface Acknowledgments Part I Introduction to C Programming 1 First Steps to Run a C Program 1.1 A Cycle of C Programming 1.2 UNIX Command Primer 1.3 Overview of C Programming 1.3.1 Principles of C language 1.3.2 Skeleton C program 1.4 Exercises 2 Components of C Language 2.1 Variables and Data Types 2.1.1 Cast Operators 2.1.2 Examples of Data Type 2.2 Input/Output 2.3 Operators between Variables 2.3.1 Relational Operators 2.3.2 Logical Operators 2.3.3 Increment/Decrement/Substitution Operators 2.3.4 Exercises 2.4 Control Statements 2.4.1 if Statement 2.4.2 for Statement 2.4.3 while Statement 2.4.4 do while Statement 2.4.5 switch Statement 2.4.6 Miscellaneous Remarks 2.4.7 Exercises 2.5 Functions 2.5.1 Definition of Functions in C 2.5.2 Locality of Variables within a Function 2.5.3 Recursivity of Functions 2.5.4 Random Numbers, rand() 2.5.5 Exercises 2.6 Arrays 2.6.1 Definition of Arrays 2.6.2 Multi-dimensional Arrays 2.6.3 Examples 2.6.4 Exercises 2.7 File Handling 2.7.1 I/O Redirection (Standard Input/Output Redirection) 2.7.2 File Handling (From within a Program) 2.8 Pointers 2.8.1 Address Operator & and Dereferencing Operator * 2.8.2 Properties of Pointers 2.8.3 Function Arguments and Pointers 2.8.4 Pointers and Arrays 2.8.5 Function Pointers 2.8.6 Summary 2.8.7 Exercises 2.9 String Manipulation 2.9.1 How to Handle a String of Characters (Text) 2.9.2 String Copy/Compare/Length 2.10 Command Line Arguments 2.10.1 Entering Command Line Arguments 2.10.2 Exercises 2.11 Structures 2.11.1 Mixture of Different Types of Variables 2.11.2 Exercises Part II Numerical Analysis 3 Note on Numerical Errors 4 Roots of f(x) = 0 4.1 Bisection Method 4.2 Newton’s Method 4.2.1 Newton’s Method for a Single Equation 4.2.2 Newton’s Method for Simultaneous Equations (Optional) 4.2.3 Exercises 5 Numerical Differentiation 5.1 Introduction 5.2 Forward/Backward/Central Difference 5.3 Exercises 6 Numerical Integration 6.1 Introduction 6.2 Rectangular Rule 6.3 Trapezoidal Rule 6.4 Simpson’s Rule 6.5 Exercises 7 Solving Simultaneous Equations 7.1 Introduction 7.2 Gauss-Jordan Elimination Method 7.3 LU Decomposition (Optional) 7.4 Gauss-Seidel Method (Jacobi Method) 7.5 Exercises 8 Differential Equations 8.1 Initial Value Problems 8.1.1 Euler’s Method 8.1.2 Runge-Kutta Method 8.2 Higher-order Ordinary Differential Equations 8.3 Exercises A Gnuplot B Octave (MATLAB) Tutorial for C Programmers B.1 Introduction B.2 Basic Operations B.2.1 Principles of Octave/MATLAB B.2.2 Reserved Constants B.2.3 Vectors/Matrices B.2.4 Graph B.2.5 I/O B.2.6 M-files B.2.7 Conditional Statement B.3 Sketch of Comparison Between C and Octave/MATLAB B.4 Exercises C FORTRAN Tutorial for C Programmers C.1 FORTRAN Features C.2 How to Run a FORTRAN Program C.3 Sketch of Comparison Between C and FORTRAN C.4 Exercises Author’s Biography Index

Similar books

Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36

Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36

2010 · PDF

THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.

THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.

1858 · PDF

Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.

Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.

2022 · PDF