This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Sine and Cosine Accuracy



On 2005-05-26, at 22:39, Gabriel Dos Reis wrote:


Scott Robert Ladd <scott.ladd@coyotegulch.com> writes:

| Richard Henderson wrote:
| > On Thu, May 26, 2005 at 10:34:14AM -0400, Scott Robert Ladd wrote:
| >
| >> static const double range = PI; // * 2.0;
| >> static const double incr = PI / 100.0;
| >
| >
| > The trig insns fail with large numbers; an argument
| > reduction loop is required with their use.
|
| Yes, but within the defined mathematical ranges for sine and cosine --
| [0, 2 * PI) --


this is what they call "post-modern maths"?

[...]

| I've never quite understood the necessity for performing trig operations
| on excessively large values, but perhaps my problem domain hasn't
| included such applications.


The world is flat; I never quite understood the necessity of spherical
trigonometry.

I agree fully. And who was this Fourier anyway?



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]