Sine and Cosine Accuracy
Gabriel Dos Reis
gdr@integrable-solutions.net
Thu May 26 21:15:00 GMT 2005
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.
-- Gaby
More information about the Gcc
mailing list