Iterated Piecewise Affine (IPA) Approximation for Language Modeling