Hardware-software trade-offs in evaluation of mathematical functions in microcomputers