By dividing the domain of a function into smaller intervals, one can find linear approximations of the function. It was used these to linearize a particular type of nonlinear programming problems, in order to use a modified simplex algorithm to give an approximate solution of such problems.