# Numerical Methods

Assistant Professor Department of Computer Science and Institute of Multimedia Engineering

Introduction

me  Course overview

2

54787  黃怡錚  sayhello.liu@gmail. 56675 Numerical Methods © Wen-Chieh Lin 3 .edu.Administration  Course web http://caig.cs.com  EC 512.nctu. ext.edu.nctu.cs96g@g2. ext.tw/course/NM  Office hours Wed 3:30—5:00 PM  EC707.tw  EC229B.  TA:  劉政旻  proof.

Addison-Wesley. Numerical Methods © Wen-Chieh Lin 4 . (2004). 7th ed.Textbook  Applied Numerical Analysis. by Gerald & Wheatley.

 Scientific Computing: An Introductory Survey. 2nd Ed. Brian P. Saul A.References  Applied Numerical Methods with MATLAB for Engineers and Scientists. Teukolsky. McGrawHill  Numerical Recipes in C++. C. Flannery. by S. (2002) by William H. William T. by Michael Heath. Vetterling. Press. McGraw-Hill. (2005). Cambridge University Press Numerical Methods © Wen-Chieh Lin 5 . 2nd Ed. Chapra. (2002).

Perquisites and Grading  Perquisites  Calculus  Linear algebra  Assignments  Written (40%) homework  MATLAB programming  Quiz (depending on class attendance)  Midterm exam (30%)  Final exam (30%) Numerical Methods © Wen-Chieh Lin 6 .

Late and Cheating Policies  Turn in assignments on the class of the due date  Penalty of 10% of the value of the assignment/day  0 points for any cheating on assignments or test Numerical Methods © Wen-Chieh Lin 7 .

S. replacement and tracking  Physics-based animation  M. School of CS.S..D. NCTU  Join NCTU in March 2006 Numerical Methods © Wen-Chieh Lin 8 . in Control Eng.About me  Ph. CMU  Texture synthesis. in Robotics. & B.

Near-regular Texture Analysis and Manipulation Numerical Methods © Wen-Chieh Lin 9 .

Dynamic Near-regular Texture Tracking and Replacement visibility map Numerical Methods © Wen-Chieh Lin 10 .

Application: Superimposition with Occlusion Numerical Methods © Wen-Chieh Lin 11 .

Dynamic Texture Replacement— underwater texture Numerical Methods © Wen-Chieh Lin 12 .

Physics-based Animation Numerical Methods © Wen-Chieh Lin 13 .

 This is a course to teach you computer algorithms for analyzing and solving science and engineering problems in numerical ways.What is this course about?  This is not a course to teach you to code. Numerical Methods © Wen-Chieh Lin 14 .

Numerical Analysis/Methods  What is numerical analysis/method?  Analysis and design of algorithms for numerically solving mathematical problems in science and engineering  Why do we care about numerical analysis?  Simulation of real-world phenomena and events  Virtual prototyping of engineering designs Numerical Methods © Wen-Chieh Lin 15 .

we know that 2 is a root of the equation  Numerically.Analysis vs. how do we find the root of the equation using a computer program?  Computer can only do arithmetic operations  Design a procedure consisting of only arithmetic operations to find the root  Consider 2 Numerical Methods © Wen-Chieh Lin 16 . Numerical Analysis solving x  2  Analytically.

4  1.1025 2 1.4125  1.96 2 1.25 2 x  2 2 Too large Too small A bit closer Close Pretty close 1 .45  2.030625 2 1.425  2.5  2.99515625 2 This is actually a root finding method called “ Bisection” ! Numerical Methods © Wen-Chieh Lin 17 .Numerically Solving 1 .

Course Overview  Approximation and errors  Solving nonlinear equations  Solving sets of equations Numerical Methods © Wen-Chieh Lin 18 .

Course Overview (cont. we call it interpolation. Interpolation Numerical Methods © Wen-Chieh Lin 19 .)  Interpolation and curve fitting  Find intermediate values from a table of data  Fit curves to data  If the curve passes all data points.

even when no analytical form exists  Numerical solution of ordinary differential equations  Optimization Numerical Methods © Wen-Chieh Lin 20 .)  Approximation  with of functions polynomials or ratio of polynomials  Numerical differentiation and integration  approximate derivative values of a function  approximate definite integral.Course Overview (cont.

optimization. curve fitting. PDE solver. linear equations  Stereo vision  Shape from shading Numerical Methods © Wen-Chieh Lin 21 . finite element method  Physics-based animation  Geometry modeling  Computer vision—optimization.Applications of Numerical Methods  Computer graphics—root finding. ODE solver. curve fitting. interpolation.

interpolation. function approximation  Pattern recognition  Neural network  Simulation for prototyping—ODE solver. finite element method  Circuit design  Mechanical design  CAD/CAM Numerical Methods © Wen-Chieh Lin 22 . numerical integration. optimization. linear equations.Applications of Numerical Methods (cont.)  Machine learning—curve fitting. PDE solver.

gas.g. Fluid dynamics) Simulated physical phenomena gravity  momentum  collision  friction  fluid flow (liquid. Newton’ s laws. turbulence)  flexibility.Examples in Physics-based Animation   Generate motion based on physical laws (e. elasticity  fracture  Numerical Methods © Wen-Chieh Lin 23 ..

SIGGRAPH 2003 Numerical Methods © Wen-Chieh Lin 24 . Ronald Fedkiw and Henrik Wann Jensen.Simulated Flames Duc Quang Nguyen.

Simulated Water Nick Foster and Ronald Fedkiw. SIGGRAPH 2001 Numerical Methods © Wen-Chieh Lin 25 .

SIGGRAPH 2002 Numerical Methods © Wen-Chieh Lin 26 .Simulated Cloth Kwang-Jin Choi and Hyeong-Seok Ko.

Simulated Deformable Object Doug James & Dinesh Pai. SIGGRAPH 2002 Numerical Methods © Wen-Chieh Lin 27 .

Questions? Numerical Methods © Wen-Chieh Lin 28 .