Nonlinear Propagation and Scattering: Analytic Solution and Symbolic Code Implementation