![]() ![]() Perform polynomial multiplication and simplify the results, show that ( x - 1 ) ( x + 1 ) ( x 2 + x + 1 ) ( x 2 + 1 ) ( x 2 - x + 1 ) ( x 4 - x 2 + 1 ) simplifies to x 1 2 - 1. Then you can use the general subs command gsubs (f,old,new) which in our cases would be gsubs (f,x,c) or gsubs (f,x,x0). Most mathematical expressions can be represented in different, but mathematically equivalent forms and the Symbolic Math Toolbox supports a number of operations, including factoring or expanding expressions, combining terms, rewriting or rearranging expressions, and simplification based on assumptions. Suppose you have a symbolic expression f which includes the symbol x and you wish to substitute for x another symbol c or a numerical value x0. The Symbolic Math Toolbox supports the Formula Manipulation and Simplification of mathematical functions. snew subs( s ) returns a copy of s, replacing symbolic scalar variables in s with their assigned values in the MATLAB workspace, and then evaluates s.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |