Polynomial min/max using coefficients vector?

4 次查看(过去 30 天)
Hello Experts,
Consider I have polynomial and a vector p with it's coefficients. What function in Matlab gets such vector p and computes max and minimum.
Thanks a lot in advance!
I need both maximum and minimum.

采纳的回答

Thomas
Thomas 2011-10-12
Suppose you have a polynomial
x^3 - 2*x - 5
c=sym2poly(x^3 - 2*x - 5) will give you the vector coefficients:
c =
1.00 0 -2.00 -5.00
minmax(sym2poly(x^3 - 2*x - 5))
ans =
-5.00 1.00
minmax(sym2poly(polynomial)) will give you the minimum and maximum of the coeffiecients.
Hope this was useful
  2 个评论
Steve
Steve 2011-10-12
Thank you very much!!!!
It was my pleasure to get your answer, informative and smart!
Steve
Steve 2011-10-12
I meant the extremum...sorry but maybe you didn't expressed myself right.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Polynomials 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by