Smooth Mathematical Function from Compact Neural Networks