TAILIEUCHUNG - Elementary mathematical and computational tools for electrical engineers using Matlab - Chapter 2

Difference Equations Chương này giới thiệu các phương trình khác nhau và xem xét một số trường hợp đơn giản nhưng quan trọng của ứng dụng của họ. Chúng tôi phát triển các thuật toán đơn giản cho các giải pháp số của họ và áp dụng những kỹ thuật để các giải pháp của một số vấn đề quan tâm đến chuyên môn kỹ thuật. Đặc biệt, nó minh họa từng loại phương trình khác biệt là quan tâm rộng rãi. . | 2_ Difference Equations This chapter introduces difference equations and examines some simple but important cases of their applications. We develop simple algorithms for their numerical solutions and apply these techniques to the solution of some problems of interest to the engineering professional. In particular it illustrates each type of difference equation that is of widespread interest. Simple Linear Forms The following components are needed to define and solve a difference equation 1. An ordered array defining an index for the sequence of elements 2. An equation connecting the value of an element having a certain index with the values of some of the elements having lower indices the order of the equation being defined by the number of lower indices terms appearing in the difference equation 3. A sufficient number of the values of the elements at the lowest indices to act as seeds in the recursive generation of the higher indexed elements. For example the Fibonacci numbers are defined as follows 1. The ordered array is the set of positive integers 2. The defining difference equation is of second order and is given by F k 2 F k 1 F k 3. The initial conditions are F 1 F 2 1 note that the required number of initial conditions should be the same as the order of the equation . 2001 by CRC Press LLC From the above it is then straightforward to compute the first few Fibonacci numbers 1 1 2 3 5 8 13 21 34 55 89 . Example Write a program for finding the first 20 Fibonacci numbers. Solution The following program fulfills this task N 18 F 1 1 F 2 1 for k 1 N F k 2 F k F k 1 end F It should be noted that the value of the different elements of the sequence depends on the values of the initial conditions as illustrated in Pb. which follows. In-Class Exercises Pb. Find the first 20 elements of the sequence that obeys the same recursion relation as that of the Fibonacci numbers but with the following initial .

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.