Post on 07-Jan-2016
description
1
Villanova UniversityDept. of Civil & Environmental Engineering
CEE 3702Numerical Analysis
CEE 3702Numerical Analysis
Lecture 2
Dr. David W. Dinehart
2
Villanova UniversityDept. of Civil & Environmental Engineering
CEE 3702Numerical Analysis
Lesson Objectives
• Identify the necessary steps of creating a program
• Review flowcharts• Introduce algorithms and
pseudocode• Review of Excel - example
problem
3
Villanova UniversityDept. of Civil & Environmental Engineering
CEE 3702Numerical Analysis
Chapter 2 - Computers and Software
What is the slope of the line?
h
eexf
xhx
Numerical Derivative
4
Villanova UniversityDept. of Civil & Environmental Engineering
CEE 3702Numerical Analysis
Programming
• Any engineering equation can be expressed as a function
• This course will allow us to solve these functions
• Numerical analysis techniques lend themselves to computer programming
Where do we start?
5
Villanova UniversityDept. of Civil & Environmental Engineering
CEE 3702Numerical Analysis
Your plan of attack(includes equations)
Nuts and bolts
*VERY IMPORTANT*
Revisions/Improvements
6
Villanova UniversityDept. of Civil & Environmental Engineering
CEE 3702Numerical Analysis
Algorithms, Flowcharts, and Pseudocode
7
Villanova UniversityDept. of Civil & Environmental Engineering
CEE 3702Numerical Analysis
Flowchart Symbols
8
Villanova UniversityDept. of Civil & Environmental Engineering
CEE 3702Numerical Analysis
Fundamental Control Structures
1. Sequence
2. Selection
3. Repetition
*Any program can be constructed using only these three operations
9
Villanova UniversityDept. of Civil & Environmental Engineering
CEE 3702Numerical Analysis
Selection
10
Villanova UniversityDept. of Civil & Environmental Engineering
CEE 3702Numerical Analysis
Repetition