フィルターのクリア

Finding local and absolute maxima values of a polynomial

3 ビュー (過去 30 日間)
Maruf Hoque
Maruf Hoque 2017 年 2 月 27 日
回答済み: Walter Roberson 2017 年 2 月 27 日
I have a polynomial of 3.3x^6 - 23.63x^5 + 65.18x^4 - 86.97x^3 + 56x^2 - 15.4x + 1.41; I am trying to solve for the local maxima (preferably absolute maxima) for this equation. I need both x and y values for the maxima. Please let me know the best way to do this for a series of 10 polynomials
Thanks,

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 2 月 27 日
The typical calculus method is to differentiate and solve for the differentiated function equal to 0. That gives you all of the minima, maxima, and saddle points. You then differentiate the function again and evaluate at the roots you found a moment before, and the places the value is negative correspond to maxima. Select for those, take the corresponding x values back to the original equation, evaluate, pick out the largest to get the global maxima.
Hint: since you have numeric coefficients, you can do a numeric differentiation and use roots(). You will need to think a brief moment about how the coefficients that have to be passed to roots() relate to your original coefficients.

カテゴリ

Help Center および File ExchangePolynomials についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by