Programmable numerical function generators based on quadratic approximation: architecture and synthesis method