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
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
Intelligent Numerical Computation3 Control statements If statement condition statements false true tag = 0; if ~ tag tag = tag+1; end
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
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
Intelligent Numerical Computation6 Control statements while statement statements false true Example a=1; b=2; while a < 100 a = a*b; end a<100
Intelligent Numerical Computation7 Solving an equation with one variable Bisection method
Intelligent Numerical Computation8 Systems of nonlinear equations Solve
Intelligent Numerical Computation9 Where is the Jacobian matrix
Intelligent Numerical Computation10