Converting MLPs into Polynomials in Closed Form