Numerical Computation for Mechanical Engineers
Covers elementary programming concepts, including variable types, data structures, and flow control. Provides an introduction to linear algebra and probability. Numerical methods relevant to MechE, including approximation (interpolation, least squares, and statistical regression), integration, solution of linear and nonlinear equations, and ordinary differential equations. Presents deterministic and probabilistic approaches. Uses examples from MechE, particularly from robotics, dynamics, and structural analysis. Assignments require MATLAB programming. Enrollment may be limited due to laboratory capacity; preference to Course 2 majors and minors.
Fall 2014
Topics
- The MATLAB Environment
- Syntax. Scripts
- Single-Index Arrays. Plot
- Functions
- Random Sampling (rand, randn, randi). Norminv and finv
- Double-Index Arrays
- Matrix and Vector Operations
- (evil) inv. Backslash Operator (Least-Squares)
- Passing Functions (Handles). Anonymous Functions
- ode45 and ode23s. eig.
- Sparse Matrix Operations
- fsolve
Readings
- READINGS ASSIGNMENTS: Unit I: (Numerical) Calculus—Interpolation, Integration, Differentiation
- MATLAB: Textbook
- READINGS ASSIGNMENTS: Unit II: Probability; Statistical Estimation; Monte-Carlo Methods
- READINGS ASSIGNMENTS: Unit III: (Numerical) Linear Algebra I—Matrices and Vectors, Least-Squares; Regression
- READINGS ASSIGNMENTS: Unit IV: Numerical Ordinary Differential Equations (ODEs); Eigenproblems
- READINGS ASSIGNMENTS: Unit V: (Numerical) Linear Algebra II—Linear Systems; Nonlinear Systems
- (Electively, you may read Chapter 29 of the textbook for some background on nonlinear problems; however this chapter is not required for Assignment 5: Assignment 5 includes a self-contained discussion of nonlinear problems (and associated MATLAB issues).)
Spring 2013
Topics
- Numerical Calculus Part 1
- Numerical Calculus Part 2
- No MATLAB ® tutorial.
- Numerical Calculus Part 3
- Probability and Statistics Part 1
- Elements of a Program; MATLAB Basics
- Probability and Statistics Part 2
- Single Index MATLAB Arrays
- Probability and Statistics Part 3
- Probability and Statistics Part 4
- Functions in MATLAB; Random Sampling
- Probability and Statistics Part 5
- Linear Algebra 1 Part 1
- Double Index MATLAB Arrays
- Linear Algebra 1 Part 2
- Linear Algebra 1 Part 3
- MATLAB Matrix/Vector Operations; MATLAB Backslash (Least Squares)
- Special Topic: MATLAB Programming and Arduino Part 1
- Special Topic: MATLAB Programming and Arduino Part 2
- No MATLAB tutorial.
- Linear Algebra 1 Coda
- Ordinary Differential Equations Part 1
- MATLAB eig
- Ordinary Differential Equations Part 2
- Ordinary Differential Equations Part 3
- Passing Functions (Handles); Anonymous Functions. MATLAB ode45
- Linear Algebra 2 Part 1
- Linear Algebra 2 Part 2
- Linear Algebra 2 Part 3
- MATLAB Sparse Matrix Operations
- Linear Algebra 2 Part 4
- Nonlinear Problems Part 1
- MATLAB Sparse Backslash
- Nonlinear Problems Part 2
- Nonlinear Problems Part 3
- Additional Topics
- MATLAB fsolve
Readings
- Chapter 1: Motivation
- Chapter 2: Interpolation
- Chapter 3: Differentiation
- Chapter 4: Elements of a Program and MATLAB Basics
- Chapter 5: MATLAB Arrays
- Chapter 6: Functions in MATLAB
- Chapter 7: Integration
- Chapter 8: Introduction
- Chapter 9: Introduction to Random Variables
- Chapter 10: Statistical Estimation: Bernoulli (Coins)
- Chapter 11: Statistical Estimation: The Normal Density
- Chapter 12: Monte Carlo: Areas and Volumes
- Chapter 13: Monte Carlo: General Integration Procedures
- Chapter 14: Montel Carlo: Failure Probabilities
- Chapters 8, 9, 10, 11, and 12
- Chapter 15: Motivation
- Chapter 16: Matrices and Vectors: Definitions and Operations
- Chapter 17: Least Squares
- Chapter 18: MATLAB Linear Algebra (Briefly)
- Chapter 19: Regression: Statistical Inference
- Chapters 11, 15, 16, 17, and 19
- Chapter 20: Motivation
- Chapter 21: Initial Value Problems
- Chapter 22: Boundary Value Problems
- Chapter 23: Partial Differential Equations
- Chapter 24: Motivation
- Chapter 25: Linear Systems
- Chapter 26: Gaussian Elimination and Back Substitution
- Chapter 27: Gaussian Elimination: Sparse Matrices
- Chapter 28: Sparse Matrices in MATLAB
- Chapters 24, 25, 26, and 27
- Chapter 29: Newton Iteration
Fall 2012
Topics
- Unit I lecture
- Unit I lecture (cont.)
- Elements of a program; MATLAB® basics
- Unit II lecture
- Unit II lecture (cont.)
- Single-index MATLAB arrays (FP)
- Functions in MATLAB
- Double-index MATLAB arrays
- Unit III lecture
- Unit III lecture (cont.)
- Recitation
- MATLAB matrix/vector operations
- Unit IV lecture
- MATLAB backslash (least squares)
- Unit IV lecture (cont.)
- MATLAB eig.
- Passing functions; anonymous functions
- Unit V lecture
- Characters and strings
- Unit V lecture (cont.)
- MATLAB sparse matrix operations
- MATLAB sparse backslash
- Unit VII lecture
- Unit VII lecture (cont.)
- MATLAB structures
Readings
- All readings are from the textbook: Masayuki Yano, James Douglass Penn, George Konidaris, and Anthony T. Patera. Math, Numerics, and Programming (for Mechanical Engineers) . V1.2, September 2012. Files for each available unit are provided in the following table, courtesy of the authors.
- Chapter 4 (for Recitation session 1)
- Chapters 8, 9, 10, 11, 12, 14
- Chapters 11, 15, 16, 17, 19
- Chapter 20; Sections 21.1.1 to 21.1.5 inclusive; Section 21.2; page 348; Section 21.4 but only the first two paragraphs.
- Chapters 24, 25, 26, 27
Prerequisites & course information
Prereq: Calculus II (GIR) and Physics I (GIR) ; Coreq: 2.087 or 18.03 U (Fall, Spring) 2-2-8 units. REST
Sources
- Course catalogue ↗2026–2027
- MIT OpenCourseWare ↗Fall 2014
- MIT OCW readings ↗
- MIT OCW syllabus ↗
- MIT OCW calendar ↗
- MIT OpenCourseWare ↗Spring 2013
- MIT OCW calendar ↗
- MIT OCW syllabus ↗
- MIT OCW readings ↗
- MIT OpenCourseWare ↗Fall 2012
- MIT OCW readings ↗
- MIT OCW calendar ↗
- MIT OCW syllabus ↗
- Historical MIT OpenCourseWare offering. Named reading entries and schedule topics are automatically extracted from the linked source pages.
- Historical MIT OpenCourseWare offering. Named reading entries and schedule topics are automatically extracted from the linked source pages.
- Historical MIT OpenCourseWare offering. Named reading entries and schedule topics are automatically extracted from the linked source pages.