收藏 分销(赏)

01-Introduction.ppt

上传人:仙人****88 文档编号:14796592 上传时间:2026-11-26 格式:PPT 页数:42 大小:524KB 下载积分:10 金币
下载 相关
01-Introduction.ppt_第1页
第1页 / 共42页
01-Introduction.ppt_第2页
第2页 / 共42页


点击查看更多>>
资源描述
,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Fifth level,*,Numerical Methods Using MATLAB,Dr.Sheng-Jian Lai,Research Building 704#,UESTC,Email:cem,Numerical Methods,1 Introduction&Course Overview,Lectures Goals,Introduce computer methods for the solution of civil,engineering problems,including:,General Introduction to Computer Applications in Engineering and Construction,Why do you need to be able to write and understand computer program and numerical methods?,Matlab-Mathematical Laboratory,Topics,Matlab-Mathematical Program(Vectors),Computer Errors-Recognition and solutions,Roots f(x)=0,Linear Methods,Nonlinear Methods,Topics,Linear Systems-Setting up multiple sets of equations and solution techniques.,LU Decomposition-Technique to decompose matrices,Eigen-analysis-finding the eigenvalues and eigenvectors,Topics,Fitting Data,Interpolation,Curve Fitting,Numerical Differentiation,Numerical Integration,Topics,ODE,s(ordinary differential equations),Initial Value Problems,Systems of ODE,s of IVP,Boundary Value Problems,Systems of ODE,s of BVP,Partial Differential Equations(PDE,s),Why do we need to know how to use numerical analysis and methods?,Applications,Numerical Errors,Computer Types,Computer Software,You are not going to be given a nice neat exact solution in the“real world”.,Applications,Signal Processing,CFD(Computational Fluid Dynamics),Structural Analysis,Finite Element Analysis,Applications,Interpolation-Handling data,Optimization-Design and estimation,CAD(Computer Aided-Drafting),Data Collection,Computer Hardware Types,Personal Computer,Supercomputers,Vector Processors,Array Processors,Parallel Processor,Software,Operating Systems(OS),Windows-NT,ME,Windows,Unix,VMS-VAX,Linux,Software,Languages,Fundamental Assembler(Bit manipulations),Engineering Languages,Fortran,Cobol,Pascal,C+(J+),Basic,HTML and Java,Software,Higher-Order Programming,Maple -Mathematical Programming Language,Mathematica-Mathematical Programming Language,Java-Internet Programming Language,Matlab-Matrix Laboratory,Software,Tools,Word Processors,Spreadsheets,Database Management,Graphics,Mathematical Computer Codes,Matlab-Matrix Laboratory,Currently Matlab 8.0 is available on SYSU Network,MatLab,The Matlab program can be run using command line,batch commands,and programs.,What is a program?,Program consist of three main components:,Input,Main Program-Numerical methods and analysis and/or evaluation.,Output-Results.,Inputs,Numerical values,Initialization of the variables,Conditions,Equations,Main Program,Loops (for do while),Conditions(if then elseif etc.),Error Convergence (while),Using flow charts,the programs can be designed to perform a task.Using:,Output,Numerical Values,Decisions,Graphs and Plots,Outputs are the results of the program.They can go through a series of post-processing methods.,MatLab,Variable Types,Integers,Real Values(float and double),Complex Numbers(a+ib),a-real value,b-imaginary value(,“,i,”,is the square root of-1),Matlab,Data types,Numerical,Scalars,Vectors,Matrices,Logic Types,Alpha/Numerical Types,Matlab,A scalar value is the simple number,a,2,3.14157,A vector is a union of a,Transpose vector,Matlab,Matrix is a combination of vectors and scalars.Scalar and vectors are subsets of matrices.,Matlab uses matrix to do mathematical methods.,Matlab,Set of computer functions,Circular functions -sin(x),cos(x),tan(x),asin(x),acos(x),atan(x),Hyperbolic functions -sinh(x),cosh(x),tanh(x),Logarithmic functions-ln(x),log(x),exp(x),Logic functions-abs(x),real(x),imag(x),Matlab,Simple commands,clc-clears window,clg-clear graphic window,clear-clears the workspace,who-variable list,whos-variable list with size,help-when doubt use it!,Matlab,Simple commands and symbols,C-an escape from a loop,inf-infinity,NaN-No numerical value,Matlab-Scalar Operations,Addition-a+b,Subtraction-a-b,Multiplication-a*b,Right Division-a/b,Left Division-b a,Exponential-ab,Order of Precedence of Arithmetic Operations,Precedence,(1)-Parenthesis,(2)-Exponential from left to right,(3)-Multiplication and division from left to right.,(4)-Addition and subtraction from left to right.,Housekeeping,Attendance,Attendance is expected and role will be taken,Grading,Participation:10%,Homework:10%,Exams:40%,Term Project:40%,If through the term project.,The term project is the exam.,Not through the term project.Exam with test paper,Project Purpose,Enable you to explore in-depth some aspect of Civil,Architectural,or Environmental Engineering of particular interest to you,Provide experience in,use of computer methods to solve engineering problems,formulation,execution and presentation of an engineering investigation,team effort to produce a project,report and presentation that is informative to you and your classmates,Project Steps,Students sign up for an area of interest:From mid-term,Instructor prepares teams for the various topical areas,Teams,select project topic in their area and prepare proposal,present an oral progress report in class,present their final project to the class,submit final report,Team members submit evaluation of the teams work,Numerical Errors,Computers are only as good as,the person running them,.,Numerical Errors,Precision Limits,Stability,Convergence,Divergence,Machine Numbers,(p15)The computer stores a binary approximation to,x,:,q,is the,mantissa,n is the,exponent,.,computers that use,32 bits,to represent single-precision real number:,8 bits,for the exponent and,24 bits,for the mantissa.,with,seven,decimal digits of numerical precision,The computer has 64-bit double-precision real number:11,bits,for the exponent and,53 bits,for the mantissa,Numerical precision?,Errors Analysis,Def.1.7(p19)suppose that is an approximation to,p,.,absolute error,Relative error,Def.1.8(p19),significant digits,d,:,Truncation Error(p20),Round-off Error(p20),Chopping off versus Rounding off(p21),Loss of Significance(p21),Errors Analysis,O(h,n,),order of approximation,Def.1.9(p23)the function,f(h),is said to be big,Oh,of,g(h),.Denoted,f(h),=,O,(,g(h,),if there exist constants C and c,Def.1.10 two sequences:,x,n,y,n,x,n,=,O,(,y,n,),Def.1.11 assume that,f(h),is approximated by,p(h),function and that there exist a real constant,M,0 and positive integer,n,Errors Analysis,p(h),approximates,f(h),with order of approximation,O,(,h,n,),Theorem 1.6 Talyors Theorem:assume,Order of Convergence of a sequence,Def.1.12 suppose is a sequence with ,converges,to,x,with the order of convergence,O,(,h,n,).,Errors Analysis,Propagation of Error,Numerical process is,stable,or,unstable,.,Def.1.13 Suppose that represents an initial error and represents the growth of error after,n,step.,If,linear,.,If,exponential,.If ,the exponential error grows without bound.If the exponential error diminishes to zero.,Numerical Errors,Round-off Errors,Truncation Errors-Code dependent,Machine Precision,HomeWork,Exercises,P29 1.;9.,Algorithm and Programs,P31 1.;2.,Deadline:,Exercises,:first class of the 3,rd,week.,Algorithm and Programs:,weekend of the 2,nd,week.,
展开阅读全文

开通  VIP、SVIP  下载更划算
下载10份以上建议开通 VIP 会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传

当前位置:首页 > 包罗万象 > 大杂烩

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        关注我们

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服