Implementation of half-cycle trignometric functions

Steve Kargl sgk at troutmask.apl.washington.edu
Tue May 16 18:00:17 UTC 2017


On Sun, May 14, 2017 at 08:30:34AM +1000, Bruce Evans wrote:
> On Sat, 13 May 2017, Steve Kargl wrote:
> 
> > Based on other replies in this email exchange, I have gone back
> > and looked at improvements to my __kernel_{cos|sin|tan}pi[fl]
> > routines.  The improvements where for both accuracy and speed.
> 
> I really don't want another set of kernels (or more sets for degrees
> instead of radians, and sincos).

Ugh.  __kernel_tan(x,y,iy) and __kernel_tanl(x,y,iy) seem to
have inverted logic for iy.  That is, iy = 1 for __kernel_tan()
needs to be changed to y = -1 for __kernel_tanl(), and vice versa.

-- 
Steve
20170425 https://www.youtube.com/watch?v=VWUpyCsUKR4
20161221 https://www.youtube.com/watch?v=IbCHE-hONow


More information about the freebsd-numerics mailing list