Numerical Analysis
Numerical Analysis
• Numerical Integration
• Numerical Differentiation
• Systems of Linear Equations
Announcements
• Lab 4 - 29-31 May 2024
• Test 2- 3 June 2024
• Project- 6&7 June 2024
• Course Evaluation on elearning.
Numerical Integration
Kong Q., Siauw T., Bayen A.M., Python Programming and Numerical Methods, Elsevier Academic Press, (2021).
Example 1: Numerical
Integration
The following measurements are taken from the speedometer of a car
that is moving forward through a city. How far has the car traveled at
each point in time?
time 0 1 2 3 4 5 6 7 8 9 10
[min]
speed 0 10 50 30 0 10 50 30 40 20 0
[km/h]
Example 2: Numerical
Integration
Wikipedia: https://en.wikipedia.org/wiki/Normal_distribution
Numerical Differentiation
Differentiation: calculating the slope of a function (rate of change)
Kong Q., Siauw T., Bayen A.M., Python Programming and Numerical Methods, Elsevier Academic Press, (2021).
Example 1: Numerical
Differentiation
The following measurements show distance traveled as a function of time.
Determine the speed.
time 0 1 2 3 4 5 6 7 8 9 10
[min]
distance 0 0.1 0.3 0.35 0.35 0.5 0.7 1 1.05 1.1 1.2
[km]
Example 2: Numerical
Differentiation
Determine the derivatives of the following functions:
• f1(x) = cos(x)
• f2(x) = exp(-x)
• f3(x) = 1/(x+1)
Systems of Linear Equations
System of Linear Equations:
Matrix Form:
Kong Q., Siauw T., Bayen A.M., Python Programming and Numerical Methods, Elsevier Academic Press, (2021).
Example 1:
• Check if unique solution exists:
• determinant of A must not be zero