Function and derivative approximation by shallow neural networks | Synapse