How to find degree of polynomial in Matlab?
Mostrar comentarios más antiguos
Dear All, Good day! I am trying to find the degree of polynomial in MATLAB. I know it is possible in MuPAD by using degree(p). But couldn't find a way by using editor. Kindly help me on this. Thanks
2 comentarios
Walter Roberson
el 30 de Dic. de 2013
How is the polynomial represented ?
Sohail
el 30 de Dic. de 2013
Respuesta aceptada
Más respuestas (2)
The Matlab Spot
el 30 de Dic. de 2013
Editada: The Matlab Spot
el 30 de Dic. de 2013
0 votos
1 comentario
Sohail
el 30 de Dic. de 2013
Roger Stafford
el 30 de Dic. de 2013
0 votos
Suppose you evaluate your polynomial, P(x), at a large number of equally-spaced values of x. Then if diff(P,n) exhibits a non-zero constant value (except of course for small round-off errors,) you can conclude that P has degree n. Moreover, that constant value is indicative of the coefficient of the highest degree term.
I would think however, that an inspection of whatever process is creating your polynomial should more easily tell you its degree.
Categorías
Más información sobre Number Theory en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!