cee 3702 numerical analysis lecture 2 dr. david w. dinehart

10
1 Villanova University Dept. of Civil & Environmental Engineering CEE 3702 Numerical Analysis CEE 3702 Numerical Analysis Lecture 2 Dr. David W. Dinehart

Upload: nalani

Post on 07-Jan-2016

26 views

Category:

Documents


3 download

DESCRIPTION

CEE 3702 Numerical Analysis Lecture 2 Dr. David W. Dinehart. Lesson Objectives. Identify the necessary steps of creating a program Review flowcharts Introduce algorithms and pseudocode Review of Excel - example problem. Chapter 2 - Computers and Software. Numerical Derivative. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: CEE 3702 Numerical Analysis Lecture 2 Dr. David W. Dinehart

1

Villanova UniversityDept. of Civil & Environmental Engineering

CEE 3702Numerical Analysis

CEE 3702Numerical Analysis

Lecture 2

Dr. David W. Dinehart

Page 2: CEE 3702 Numerical 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

Page 3: CEE 3702 Numerical Analysis Lecture 2 Dr. David W. Dinehart

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

Page 4: CEE 3702 Numerical Analysis Lecture 2 Dr. David W. Dinehart

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?

Page 5: CEE 3702 Numerical Analysis Lecture 2 Dr. David W. Dinehart

5

Villanova UniversityDept. of Civil & Environmental Engineering

CEE 3702Numerical Analysis

Your plan of attack(includes equations)

Nuts and bolts

*VERY IMPORTANT*

Revisions/Improvements

Page 6: CEE 3702 Numerical Analysis Lecture 2 Dr. David W. Dinehart

6

Villanova UniversityDept. of Civil & Environmental Engineering

CEE 3702Numerical Analysis

Algorithms, Flowcharts, and Pseudocode

Page 7: CEE 3702 Numerical Analysis Lecture 2 Dr. David W. Dinehart

7

Villanova UniversityDept. of Civil & Environmental Engineering

CEE 3702Numerical Analysis

Flowchart Symbols

Page 8: CEE 3702 Numerical Analysis Lecture 2 Dr. David W. Dinehart

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

Page 9: CEE 3702 Numerical Analysis Lecture 2 Dr. David W. Dinehart

9

Villanova UniversityDept. of Civil & Environmental Engineering

CEE 3702Numerical Analysis

Selection

Page 10: CEE 3702 Numerical Analysis Lecture 2 Dr. David W. Dinehart

10

Villanova UniversityDept. of Civil & Environmental Engineering

CEE 3702Numerical Analysis

Repetition