Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Rank of root
Replies: 2   Last Post: Dec 29, 2012 1:32 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Roger Stafford

Posts: 5,816
Registered: 12/7/04
Re: Rank of root
Posted: Dec 29, 2012 12:56 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Triet" wrote in message <kbm7qf$bn2$1@newscl01ah.mathworks.com>...
> I know Matlab has "factor" to factor an equation, but is there any function or any way to do this in Matlab:
> -Input: an equation ex: x^3 -8*x^2 + 20*x -16
> -Output:
> +the equation factored, ex: (x - 4)*(x - 2)^2
> +Solve the equation, ex: x1=4; x2=2
> +Most important: show the rank of each root (the power of each inner expression) , ex: root 1 = 4 has rank = 1; root 2 = 2 has rank = 2

- - - - - - - - -
Besides the symbolic 'factor' there is the numeric 'roots' function from which you can obtain the above information by comparing the polynomial's roots. For a polynomial with real coefficients a pair of roots which are complex conjugates of one another will give you a quadratic factor. Note that roots which are equal may suffer slightly differing round-off errors so your comparisons should have a tolerance for small differences.

Roger Stafford


Date Subject Author
12/29/12
Read Rank of root
Triet
12/29/12
Read Re: Rank of root
Roger Stafford
12/29/12
Read Re: Rank of root
Triet

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.