tailieunhanh - Learning MATLAB Version 6 (Release 12) phần 8

Các biểu thức này là ba đại diện khác nhau của cùng một chức năng toán học, một đa thức khối trong x. Mỗi một trong ba hình thức là thích hợp hơn để những người khác trong tình huống khác nhau. Hình thức đầu tiên, e, là đại diện được sử dụng phổ biến nhất của một đa thức. | Simplifications and Substitutions Simplifications and Substitutions There are several functions that simplify symbolic expressions and are used to perform symbolic substitutions. Simplifications Here are three different symbolic expressions. syms x f xA3-6 xA2 11 x-6 g x-1 x-2 x-3 h x x x-6 11 -6 Here are their prettyprinted forms generated by pretty f pretty g pretty h 3 2 x - 6 x 11 x - 6 x - 1 x - 2 x - 3 x x x - 6 11 - 6 These expressions are three different representations of the same mathematical function a cubic polynomial in x. Each of the three forms is preferable to the others in different situations. The first form f is the most commonly used representation of a polynomial. It is simply a linear combination of the powers of x. The second form g is the factored form. It displays the roots of the polynomial and is the most accurate for numerical evaluation near the roots. But if a polynomial does not have such simple roots its factored form may not be so convenient. The third form h is the Horner or nested representation. For numerical evaluation it involves the fewest arithmetic operations and is the most accurate for some other ranges of x. The symbolic simplification problem involves the verification that these three expressions represent the same function. It also involves a less clearly defined objective which of these representations is the simplest 7-43 7 Symbolic Math Toolbox This toolbox provides several functions that apply various algebraic and trigonometric identities to transform one representation of a function into another possibly simpler representation. These functions are collect expand horner factor simplify and simple. collect The statement collect f views f as a polynomial in its symbolic variable say x and collects all the coefficients with the same power of x. A second argument can specify the variable in which to collect terms if there is more than one candidate. Here are a few examples. f collect f x-1 x-2 x-3 xA3-6 xA2 11 x-6 x x

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã 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.