Energy Optimized Piecewise Polynomial Approximation Utilizing Modern Machine Learning Optimizers