![]() ![]() Sin x/cos x − sin x sin x/ cos x sinx is equivalent to tan 2x.Ĭlear all % file available in M-files folder as file6. Matlab allows for easy computation of the eigenvalues and eigenvectors of any square matrix. You will notice that the coefficients of x 3 and x 2 in q(x) are not exactly zero but are infinitesimally small due to tiny round-off errors introduced when numerically solving for the roots in MATLAB.Įxample 2: Using trigonometric identities you should be able to show that Example: Remarks: a) In finding the coefficients, use ctrl shift period to obtain a placeholder. Q=poly2sym(Q) % change back to Maple expression Using the function polyroots( ) to obtain all the roots. ![]() Q=poly(polyroots) % re-assemble polynomial from its roots See also: residue, poly, roots, conv, deconv. Polyroots=roots(P) % numerically find roots in \mat P=sym2poly(p) % change into MATLAB array P Expand and factor in “Maple”, convert into an equivalent Matlab array, find the roots numerically, re-assemble the polynomial coefficients from the roots and then change back into a symbolic form.Ĭlear all % file available in M-files folder as file5.m Tries a number of simplification techniques including trigonometric identities may need using twiceĬonverts array of polynomial coefficients in \mat into a symbolic expression in ‘‘Maple" with x as the variableĬonverts symbolic polynomial in ‘‘Maple" into coefficient array in MATLABĪt the simplest level, enter factor(28809).Įxample 1: Suppose p(x) = x 2(x 4) 2 − 8x(x 1) 2 13x − 6. Performs algebraic and other functional simplifications A selection of commands in “Maple”: simplify ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |