- Syllabus, survey, pictures
- Computer Hardware (various major components),
- Internet, Remote Computer Login (telnet), File Transfer (ftp), Hypertext File Transfer (http), HTML
- ASCII, ASCII Table
- Number System, Base Conversion, Bits & Bytes
- Error, Accuracy, Iteration
- Integration, Trapezoidal Rule
- Ax=b, Matrix, Handling Vectors/Matrices in Spreadsheet
- Gaussian Elimination & Matrix Inverse:
Ax=b & A-1.
- Excel, Spreadsheet Fundamentals
- On-line Excel Tutorial (Save first to your PC first; then open.)
- Excel Examples.
- Temperature Conversion
- Numerical Integration
- Matrix & Linear Algebraic Equations
|
- Basic
- Summary of QBasic Syntax. Note that there is no "standard" Basic.
(Variable Types, Assginment, Algebraic/Logic Operators, I/O, SUB/FUNCTION,
Flow Control/Branching with IF, FOR-Loop.)
- Demo on Module (Macro, Subroutine, Function, etc.)
- Matrix Product via Module
- A-1 via Module (Calling Numerical Recipes' GAUSSJ)
- Numerical Recipes (Book on numerical algorithms and a collection of routines usable in Excel's VBA)
- Selected Routines from NR
- f(x)=0: Algorithm & One-Dimensional Examples
- Nonlinear Algebraic Equation (sin(x)=a*x)
- Exam #1 & Solution
|
- Nonlinear Algebraic Equations (Multidimensional f(x)=0)
- Nonlinear Algebraic Equations via Module (Calling Numerical Recipes' MNEWT)
- Nonlinear Algebraic Equation (Flash Distillation)
- Mathcad Program
- Mathcad Examples:
- Basic examples of functions and algebraic equations
- Temperature Conversion, from Celsus to Fahrenheit
(Problem Statement)
- Ditto, from Fahrenheit to Celsius
(Problem Statement)
- Integrate the Gaussian Function.
- Some Matrix Manipulations
- Linear Algebraic Equations Ax=b -- Pasteboard Problem
- Iteration: Taylor's series expansion to find exp(x)
(Mathcad's "until" is not intuitive; its use is discouraged in v2k.)
- Implementation of Bisection Method (sin(x)=a*x Example)
- Implementation of Newton's Method (sin(x)=a*x Example)
- Nonlinear Algebraic Equations (Multidimensional f(x)=0)
(Problem Statement)
- Binary Distillation (McCabe-Thiele Diagram)
- Mathcad: Symbolic Computation
|
| |
| | Week #4
| |
|
- Linear Regression, Data Fitting
- Slope & Intercept
- Derivation of Intercept and Slope Equations
- Linear Regression Algorithms
- Multivariate Regression Series (Part 1, Linear Least Squares Regression)
- Multivariate Regression Series (Part 2, Multiple Least Squares Regression)
- Excel Examples of Linear Regression
- Mathcad Examples of Linear Regression
- Linear Regression ("intercept" & "slope" Functions) /w Few Data Points
- Linear Regression of Data Read from regress.prn with the Normal Equation
- Nonlinear Regression, Algorithms
- Demo: Forced linear regression of a nonlinear function may be bad.
(Problem Statement)
- Excel Examples of Nonlinear Regression
- Nonlinear Regression (Exponential Decay) by Minimizing sse
- Mathcad Examples of Nonlinear Regression
- Nonlinear Regression (Exponential Decay)
- Snapshot of Mathcad Screen (regress9.gif)
- Mathcad File (regress9.mcd) -- Convergent behavior depends on versions; see comments at end of worksheet.
- Ditto, with "Minerr" Function
- Exam #2 & Solution
| |
| |
| | Week #5
| |
|
- Matlab
- Matlab Tutorials
- Matlab Primer by Kermit Sigmon (ported by Nam Sun Wang)
- Matlab Quick Search (A List of Commands Sorted by Category)
- Matlab Programming Elements (I/O, Flow Control, Loop, Functions)
- Basic syntax and rules (matrix, array, scalar)
- Turn on recording with diary
- Input/Output with input, disp, fprintf, fopen, fclose
- Input/Output with save, load
- Assignment with algebraic expressions involving
( + - * / ^ ), e.g., sum=sum+1
- Plotting with plot, axis, title, xlabel, ylabel, text
- Looping with for ... end
- Conditional check with if ... else ... end and logical expression
involving ( == ~= > >= < <= & | ~ )
- function statement; global
- Matlab Examples
- Matlab: Temperature Conversion
- Matlab: Solve Ax=b with Matlab
- Matlab: Polynomial Roots
- Matlab: IF-THEN-ELSE
- Matlab: function (addition and subtraction)
- Matlab: Factorial function.
- Fortran (passing by reference) & Matlab (passing by value)
- Matlab: Passing by Value between functions
- Matlab: Do not place function argument in "global"
- Main M-Script File (double.m) -- Bad example.
- Main M-Script File (doubleok.m) -- Good example.
- Matlab: Quadratic Equation Solver in Matlab
- Matlab: Integration with QUAD & QUAD8
- MATLAB Examples of Nonlinear Algebraic Equation
- Demo: Solve f(x)=0 with MATLAB; f(x)=sin(x)-a*x=0 with FZERO
- Demo: Multi-Dimensional f(x)=0 with "fsolve"
(Problem Statement)
- MATLAB Examples of Linear Regression:
- Quick-Dirty Example of Linear Regression in Power Series -- Fit f(x)=1/(x+1) with "polyfit"
- MATLAB Examples of Nonlinear Regression:
- Nonlinear Regression with Exponential Decay Function Using "fsolve"
-------------------------------------------------------------------------
- ODE -- Initial Value Problem, Algorithms
- Numerical Solution of ODE with Euler & Runge-Kutta
- Transform into First-Order ODEs
- Excel Examples of ODE
- 1-dimensional ODE
- 2-dimensional ODE (Predator-Prey)
- 2-dimensional ODE (Predator-Prey via a Module and RK4 of Numerical Recipes)
- Mathcad Examples of ODE
- Ordinary Differential Equation -- Non-isothermal Reactor
- MATLAB Example of ODE
Ordinary Differential Equation -- Non-isothermal Reactor
| |
| |
| | Week #6
| |
|
- ODE -- Boundary Value Problem, Algorithms
- Excel Example of Boundary Value Problems
- ODE Boundary Value Problem (Concentration Profile in a Spherical Catalyst Particle.)
- Mathcad Examples of Boundary Value Problems
- Ordinary Differential Equations -- Boundary Value Problem (Bessel's Function by Trial & Error Shooting Method)
- Chemcad
- Chemcad Overview
- Chemcad Tutorial
- Semester Review & Teaching Evaluation
- Final Examination & Solution
| |