Documente Academic
Documente Profesional
Documente Cultură
BE 2550
Abhilash Pandya, Ph.D.
Laws
Physical laws or abstractions.
Nature is observed in experiments
V: 3 6
I : 0.1 0.2
9
0.3
12
0.4
Models
Learning how mathematical models
can be formulated on the basis of
scientific principles to simulate the
behavior of a simple physical system.
Understanding how numerical
methods afford a means to generalize
solutions in a manner that can be
implemented on a digital computer.
Overview
Root finding
Dynamic
differential
system
Systems of
Equations
Tools:
Matlab,
Arduino,
GUI
Find Job
Regression,
Interpolation,
Splines
Differentiation
Integration
Build
Models
Build
Systems
Help
Society
Make
Money
Refine
Model
Test Model
Collect Data
Make Model
Model Function
independent
Dependent
forcing
f
, parameters,
variable
variables
functions
Model Results
Using a computer, the
model can be used to
generate a graphical
representation of the
system
Measured fall time of a
small steel sphere falling
from various heights.
The data is in good
agreement with the
predicted fall time of ,
where h is the height and
g is the acceleration of
gravity.
Numerical Modeling
Babylonian clay tablet YBC
7289
The approximation of the
square root of 2 is
four sexagesimal figures,
which is about
six decimal figures. 1 + 24/60 +
51/602 + 10/603 = 1.41421296
Note, that there is no exact
answer.
http://www.math.ubc.ca/~cass/Euclid/ybc/ybc.html
Square root 6?
2.4494897427831780
98197284074705891
39196594748065667
01284326925672509
6037745
Error!
Measuring errors
True error
Relative true error
Approximate error
Relative approximate error
Significant digits
Root Finding
Bisection Method
Newton-Raphson
Secant
Algebraic Equations
Makes all
three
equations
valid!
MATLAB:
m=
3.0000 2.0000 -1.0000
2.0000 -2.0000 4.0000
-1.0000 0.5000 -1.0000
>> v = [1 -2 0];
>> inv (m) *v'
ans =
1.0000
-2.0000
-2.0000
Gaussian Elimination
LU Decomposition
Gauss-Seidal
mid
f(mid)
Direct method
3x3 + 4 = 28.
Subtract 4
3x3 = 24.
Divide by 3
x3 = 8.
x = 2.
1.5
-13.875
1.5
2.25
10.17...
1.5
2.25
1.875
-4.22...
1.875
2.25
2.0625
2.32...
We conclude from this table that the solution is between 1.875 and 2.0625.
The algorithm might return any number in that range with an error less than
0.2.
Regression/Interpolation
Creating modelsV= IR; F = MA
Direct Method
Newtons Divide Difference
Lagrange Method
Spline
Linear Regression
Non-linear Regression
Integration Differentiation
Integration
Trapezoidal Rule
Simpsons Rule
Romberg Rule
Gauss Quadrature
Differentiation:
Continuous Functions
Discrete functions
Forward Difference
Backward Difference
Central Difference
Differential Equations
MATLAB
1-1
The ly Philosophy
Patiently
Persistently
Intelligently
Smilingly
Ardently
Calmly
Thoroughly
Honestly
<seeds story>