Text this: Nonlinear and dynamic programming