Modeling with one-variable equations and inequalities