Numerical methods based on necessary conditions Numerical methods mathematics