Download presentation
Presentation is loading. Please wait.
Published bySamson Little Modified over 8 years ago
1
Intelligent Numerical Computation1 Numerical Analysis Basic structures of a flowchart Solving a nonlinear equation with one variable Bisection method Newton method Secant method Solving systems of nonlinear equations Some codes Assignment #1 Topics include
2
Intelligent Numerical Computation2 Basic structure of a flowchart or a program start end statements Statements are executed one by one A statement can be an assignment: A = B*C-D : x = sort(x) a function for I/O : plot(x,y) : imread(X) a control statement -- if statement -- if else statement -- for statement -- while statement
3
Intelligent Numerical Computation3 Control statements If statement condition statements false true tag = 0; if ~ tag tag = tag+1; end
4
Intelligent Numerical Computation4 Control statements If else statement condition statements false or 0 true or 1 statements if ~ tag tag = tag +1; else tag = tag –1; end
5
Intelligent Numerical Computation5 Control statements for statement statements false true Example x=2; for i = 1:10 x = x*x; end i =1 i=i+1
6
Intelligent Numerical Computation6 Control statements while statement statements false true Example a=1; b=2; while a < 100 a = a*b; end a<100
7
Intelligent Numerical Computation7 Solving an equation with one variable Bisection method
8
Intelligent Numerical Computation8 Systems of nonlinear equations Solve
9
Intelligent Numerical Computation9 Where is the Jacobian matrix
10
Intelligent Numerical Computation10
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.