Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jun 2013 22:12:53 -0700
From:      David Schultz <das@FreeBSD.ORG>
To:        Bruce Evans <brde@optusnet.com.au>
Cc:        enh <enh@google.com>, Steve Kargl <sgk@troutmask.apl.washington.edu>, freebsd-numerics@freebsd.org
Subject:   Re: sincos?
Message-ID:  <20130628051253.GB3590@zim.MIT.EDU>
In-Reply-To: <20130628103209.H1008@besplex.bde.org>
References:  <CAJgzZopTzfYXecu7zRKhVNEEBOCtz8Z2qK8ka74c5LKZxC8mEw@mail.gmail.com> <20130627013502.GA37295@troutmask.apl.washington.edu> <CAJgzZoqbF-bS6M8OYmVx7=eKfpNmavXXZXX0Zgvsxr07CUfC0w@mail.gmail.com> <20130628103209.H1008@besplex.bde.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Steve had some patches for this that could have been committed
years ago if people would stop quibbling about it. :)  I put it on
the TODO list on the wiki for a reason!  Merging sin() and cos()
is basically all there is to it.

The advantages to having it are:

1. It's faster when computing the sine and cosine of large angles,
   because the arg reduction only has to be done once.  In particular,
   functions like cexp() can benefit.
2. Most math libraries have it, even though it's not standardized.

The disadvantage is that someone has to spend 15 minutes writing
it, plus do some testing...



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20130628051253.GB3590>