Text this: A Comparison between Fixed-Basis and Variable-Basis Schemes for Function Approximation and Functional Optimization