Programming for Computations - MATLAB/Octave : A Gentle Introduction to Numerical Simulations with MATLAB/Octave.
- 1st ed.
- 1 online resource (228 pages)
- Texts in Computational Science and Engineering Series ; v.14 .
- Texts in Computational Science and Engineering Series .
Intro -- Preface -- Contents -- List of Exercises -- 1 The First Few Steps -- 1.1 What Is a Program? And What Is Programming? -- 1.2 A Matlab Program with Variables -- 1.3 A Matlab Program with a Library Function -- 1.4 A Matlab Program with Vectorization and Plotting -- 1.5 More Basic Concepts -- 1.6 Exercises -- 2 Basic Constructions -- 2.1 If Tests -- 2.2 Functions -- 2.3 For Loops -- 2.4 While Loops -- 2.5 Reading from and Writing to Files -- 2.6 Exercises -- 3 Computing Integrals -- 3.1 Basic Ideas of Numerical Integration -- 3.2 The Composite Trapezoidal Rule -- 3.3 The Composite Midpoint Method -- 3.4 Testing -- 3.5 Vectorization -- 3.6 Measuring Computational Speed -- 3.7 Double and Triple Integrals -- 3.8 Exercises -- 4 Solving Ordinary Differential Equations -- 4.1 Population Growth -- 4.2 Spreading of Diseases -- 4.3 Oscillating One-Dimensional Systems -- 4.4 Exercises -- 5 Solving Partial Differential Equations -- 5.1 Finite Difference Methods -- 5.2 Exercises -- 6 Solving Nonlinear Algebraic Equations -- 6.1 Brute Force Methods -- 6.2 Newton's Method -- 6.3 The Secant Method -- 6.4 The Bisection Method -- 6.5 Rate of Convergence -- 6.6 Solving Multiple Nonlinear Algebraic Equations -- 6.7 Exercises -- References -- Index.