Re: Sine code for ANSI C
In article <xLdpc.72825$sK 3.24627@nwrddc0 3.gnilink.net>,
P.J. Plauger <pjp@dinkumware .com> wrote:
SNIP....
[color=blue]
>The other side of the coin is knowing where to stop once the
>"worthwhile " police get empowered. Several people who have
>contributed to this thread are convinced that computing the
>sine of a sufficiently large angle is not worthwhile, but *nobody*
>has ventured a cutoff point that has any defensible logic behind
>it. And I assure you that as soon as any such defense is mounted,
>I and others can apply it to a variety of other math functions.
>You will then hear the usual howls, "but *that's* different."[/color]
It seems to me that a reasonable cutoff point would be where
the difference between consecutive floating point numbers is greater
than two pi. At that point you can't even determine the *sign* of the
correct answer, yet alone determine any value that is justifiable.
The only thing that you can justify is a claim that the answer lies
somewhere between -1.0 and 1.0
In article <xLdpc.72825$sK 3.24627@nwrddc0 3.gnilink.net>,
P.J. Plauger <pjp@dinkumware .com> wrote:
SNIP....
[color=blue]
>The other side of the coin is knowing where to stop once the
>"worthwhile " police get empowered. Several people who have
>contributed to this thread are convinced that computing the
>sine of a sufficiently large angle is not worthwhile, but *nobody*
>has ventured a cutoff point that has any defensible logic behind
>it. And I assure you that as soon as any such defense is mounted,
>I and others can apply it to a variety of other math functions.
>You will then hear the usual howls, "but *that's* different."[/color]
It seems to me that a reasonable cutoff point would be where
the difference between consecutive floating point numbers is greater
than two pi. At that point you can't even determine the *sign* of the
correct answer, yet alone determine any value that is justifiable.
The only thing that you can justify is a claim that the answer lies
somewhere between -1.0 and 1.0
Comment