Can anyone help me write a matlab code? Thanks

조회 수: 3 (최근 30일)
Bruce Wayne
Bruce Wayne 2017년 12월 23일
댓글: Bruce Wayne 2017년 12월 24일
write a code that find MAX value, MIN value and extremum of any functional on any range. Thanks a lot.

채택된 답변

Walter Roberson
Walter Roberson 2017년 12월 23일
There is no known mathematical way of doing that for arbitrary functions.
For a subset of functions, the general approach is to take the derivative of the function and solve for 0. Each point at which the derivative becomes 0 is a minimum, maximum, or saddle point; determining which case you have can be done by taking the second derivative and evaluating it at the location and checking whether the sign of that is positive or negative or 0.
Solving the derivative for 0 is not typically possible in closed form if the derivative is a polynomial of degree more than 4, and finding all of the zeros is not generally possible for the periodic functions such as the trig functions.

추가 답변 (1개)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by