• matlab的poly()函数


    MATLAB中的poly()函数是用于求以向量为解的方程或方阵的特征多项式,可以直接传递多项式方程的系数矩阵。

    1、poly([1 2 3])使用的举例。

    P=poly([1 2 3]) 可以解出P=[1 -6 11 -6],即求得方程为:x^3-6*x^2+11*x-6=0。

    说明:方程x^3-6*x^2+11*x-6=0的解是x1=1,x2=2,x3=3

    2、poly([1 2 3; 4 5 6; 7 8 0])的使用举例,求取矩阵特征多项式系数

    P=poly([1 2 3; 4 5 6; 7 8 0]) 可以解出P=[1 -6 -72 -27],即方阵A特征多项式为:λ^3-6*λ^2-72*λ-27=0。

    说明:矩阵(方阵)A=[1 2 3; 4 5 6; 7 8 0]的特征多项式是λ^3-6*λ^2-72*λ-27=0,A的特征值就是特征多项式λ^3-6*λ^2-72*λ-27=0的根。

  • 相关阅读:
    Remove Element
    Binary Tree Inorder Traversal
    Symmetric Tree
    Roman to Integer
    Search Insert Position
    Reverse Integer
    Pascal's Triangle
    Merge Sorted Array
    Same Tree
    Visual Studio Code 做PHP开发
  • 原文地址:https://www.cnblogs.com/yibeimingyue/p/11149577.html
Copyright © 2020-2023  润新知