Anda di halaman 1dari 1

December 4, 2014

CHAPTER 2: Programming and Software





NOTE:
NOTE


Computer program a set of instructions


Structured programming a set of rules that prescribe good style habits for the programmer
Flow chart a visual or graphical representation of an algorithm
Any numerical algorithm can be composed using three fundamental control structure:
sequences, selection, repetition
Symbols used for flow chart
terminal
process
input/output
decision
junction
flow lines

Pseudo code code-like state in place of the graphical symbols of the flow chart
o EX 1:
(a)
Flow chart:
Pseudo code:
Instruction 1
Instruction 1
Instruction 2
Instruction 2
Instruction 3
Instruction 3

Modular programming
Software package
o Ex: MathCad, MatLab, Maple, Mathematica
In this course
o Programming and error analysis
o Roots of equations
o Linear algebraic equations
o Curve fitting
o Numerical differentiation and Integration
o Ordinary differential equation (Runge-Kutta Methods)
MathLab
o Colon operator :
- Ex: t = 1:5
o Some Built in functions:
- Line space, Help, .m file

false
false block

Condition
?

true
true block




Flow chart:

Page

(b) Pseudo code:


If condition THEN
True block
Else
False block
End if

Anda mungkin juga menyukai