필터 지우기
필터 지우기

Cubic Fit to minimize a polynomial

조회 수: 2 (최근 30일)
Haris Hameed
Haris Hameed 2020년 8월 12일
편집: Haris Hameed 2020년 8월 18일
hi,
using "cubic fit" calculate : min x^4 + 2*x + 4
i need some guidance how to code this?
i have searched and found this formulation for cubic fit

채택된 답변

Walter Roberson
Walter Roberson 2020년 8월 12일
Use calculus. To find min(f(x)) then solve . The roots of that give you the critical points; call those for the moment. Then, examine . Positive values indicate that the corresponding was a minima.
For a degree 4 polynomial, the derivative is degree 3, and there are closed form solutions for the roots of a polynomial of degree 3. Therefore you can calculate the exact critical points, and test them.
You will only find one real-valued root. You might assume that it must be the minima, but in the general case, it will not be a safe assumption.
  댓글 수: 1
Haris Hameed
Haris Hameed 2020년 8월 12일
Thank you. i understand it now

댓글을 달려면 로그인하십시오.

추가 답변 (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