C Programming and Numerical Analysis: An Introduction
β Scribed by Seiichi Nomura
- Publisher
- Morgan & Claypool Publishers
- Year
- 2018
- Tongue
- English
- Leaves
- 237
- Series
- Synthesis Lectures on Mechanical Engineering
- Category
- Library
No coin nor oath required. For personal study only.
β¦ Synopsis
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.
β¦ Table of Contents
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 VOLUMES
Numerical analysis deals with the development and analysis of algorithms for scientific computing, and is in itself a very important part of mathematics, which has become more and more prevalent across the mathematical spectrum. This book is an introduction to numerical methods for solving linear an
<p>Numerical analysis deals with the development and analysis of algorithms for scientific computing, and is in itself a very important part of mathematics, which has become more and more prevalent across the mathematical spectrum. This book is an introduction to numerical methods for solving linear
<p>Numerical analysis deals with the development and analysis of algorithms for scientific computing, and is in itself a very important part of mathematics, which has become more and more prevalent across the mathematical spectrum. This book is an introduction to numerical methods for solving linear