1. Trang chủ
  2. » Khoa Học Tự Nhiên

computational methods in chemical engineering with maple

871 809 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 871
Dung lượng 19,9 MB

Nội dung

[...]... Integration can be done by using the ‘int’ command: > int(y,y); y2 2 Maple can also do definite integration: > int(y,y=0 1); 1 2 1.1.2 Plotting with Maple Plots can be made in Maple using the ‘plot’ command: > plot(y,y=0 1); y Fig 1.1 Maple plot of y = y 4 1 Introduction > plot(y^2,y=0 1); y2 Fig 1.2 Maple plot of y2 = y To plot both curves on the same graph in a box use the following command > plot([y,y^2],y=0... 1.3 Maple plot of y and y2 vs y 1.1 Introduction to Maple 5 1.1.3 Solving Linear and Nonlinear Equations One can solve equations in Maple using the ‘solve’ and ‘fsolve’ commands The ‘solve’ command is used to solve linear equations in symbolic form and the ‘fsolve’ command is used to solve linear and nonlinear equations numerically For example, > restart: > eq:=x+2; eq := x + 2 > solve(eq); -2 Maple. .. 1 e 2 π t ( 3/2 ) 18 1 Introduction Unfortunately, Maple cannot find the inverse Laplace transform for complicated functions: > f(s):=1/sinh(sqrt(s)); f( s ) := 1 sinh( s ) > invlaplace(f(s),s,t); 1 invlaplace⎛ , s, t ⎞ ⎜ ⎟ ⎜ sinh( s ) ⎟ ⎝ ⎠ This does not mean that the inverse Laplace transform does not exist; instead, one has to use advanced techniques for finding the desired inverse Laplace transform... Example 10.9 Wave Equation with Inconsistent Initial/Boundary Conditions 852 10.1.7 Summary 855 10.1.8 Exercise Problems 855 References 856 Subject Index………………………………………………………………………….857 Chapter 1 Introduction 1.1 Introduction to Maple 1.1.1 Getting Started with Maple Some Maple basics are presented in this chapter as a convenience for the reader Two Maple books[1, 2] that... these equations by restricting the ranges of x and y: > fsolve(f#,{x=1 3,y=1 3}); { x = 1.760535729, y = 2.491382707 } 1.1.4 Matrix Operations Maple has a package for solving linear algebra problems which can be called by using the with( linalg)’ command > restart: > with( linalg): Warning, the protected names norm and trace have been redefined and unprotected Maple is capable of doing a variety of matrix... Heat Conduction in a Rectangle 587 Example 7.2 Heat Conduction with an Insulator Boundary Condition 599 Example 7.3 Mass Transfer in a Spherical Pellet 604 7.1.3 Separation of Variables for Parabolic PDEs with an Initial Profile 609 Example 7.4 Heat Conduction in a rectangle with an Initial Profile .609 Example 7.5 Heat Conduction in a Slab with a Linear Initial Profile... can be obtained with Maple > f(t):=sin(t); f( t ) := sin( t ) > f(s):=laplace(f(t),t,s); f( s ) := 1 s +1 2 > invlaplace(f(s),s,t); sin( t ) Inverse Laplace transforms for different functions can be also obtained: > f(s):=1/sqrt(s); 1 s f( s ) := > invlaplace(f(s),s,t); 1 πt > f(s):=1/(s)^(3/2); 1 f( s ) := s ( 3/2 ) > invlaplace(f(s),s,t); 2 t π > f(s):=exp(-sqrt(s)); f( s ) := e (− s ) > invlaplace(f(s),s,t);... plot(subs(H=1,ya),x=0 1); H=1 ya Fig 1.6 Maple plot of ya vs x for H=1 +e eH + e ( −H ( −1 + x ) ) ( −H ) 16 1 Introduction Next, plot the solution ya with H=3 and use points instead of a line > plot(subs(H=3,ya),x=0 1,style=point); ya H=3 Fig 1.7 Maple point plot of ya vs x for H=3 1.1.6 Laplace Transformations Maple can be used to obtain Laplace transforms and inverse Laplace transforms of functions... ⎢ ⎢6 ⎣ 3⎤ ⎥ 6⎥ ⎦ 1.1 Introduction to Maple 7 > evalm(A-B); ⎡0 ⎢ ⎢0 ⎣ 1⎤ ⎥ 2⎥ ⎦ Multiplication of matrices requires using evalm and ‘&*’: > evalm(A&*B); ⎡ 7 ⎢ ⎢15 ⎣ 5⎤ ⎥ 11⎥ ⎦ The determinant of a matrix can be found by using ‘det’: > det(A); -2 and > det(B); -1 Matrices can be inverted by using the ‘inverse command’: > inverse(A); 1 ⎤ ⎥ -1 ⎥ ⎥ 2 ⎥ ⎦ ⎡ -2 ⎢ ⎢ 3 ⎢ ⎢ 2 ⎣ > inverse(inverse(A)); 2⎤ ⎥ 4⎥... 5.2.1 Introduction 456 5.2.2 Numerical Method of Lines for Parabolic PDEs with Linear .456 Example 5.2.1 Diffusion with Second Order Reaction 458 Example 5.2.2 Variable Diffusivity 464 5.2.3 Numerical Method of Lines for Parabolic PDEs with Nonlinear Boundary .469 Example 5.2.3 Nonlinear Radiation at the Surface 470 5.2.4 Numerical Method of Lines for Stiff Nonlinear . x0 y0 w1 h1" alt="" Computational Methods in Chemical Engineering with Maple Ralph E. White and Venkat R. Subramanian Computational Methods in Chemical Engineering with Maple ABC Prof. Dr. Ralph. Contents 1 Introduction……………………………………………………………………… 1 1.1 Introduction to Maple 1 1.1.1 Getting Started with Maple 1 1.1.2 Plotting with Maple 3 1.1.3 Solving Linear and Nonlinear Equations. y 2 2 Maple can also do definite integration: > int(y,y=0 1); 1 2 1.1.2 Plotting with Maple Plots can be made in Maple using the ‘plot’ command: > plot(y,y=0 1); y Fig. 1.1 Maple

Ngày đăng: 01/04/2014, 10:47

TỪ KHÓA LIÊN QUAN