Question: rational polynomial approximation of tan(x)

Hi,

I'm trying to implement tan(x) over [-Pi/4,Pi/4] to have < 4ulp error.

How can I generate rational polynomial approximation so that that can be used to implement tan(x) in C.

Please suggest any references.

 

Thank you.

Please Wait...