Trigonometric function approximation neural network based coprocessor