Michael S
2024-02-22 21:39:12 UTC
On Thu, 22 Feb 2024 21:04:52 -0000 (UTC)
happen to exactly equal some random value seems irrelevant.
the other hand, I see lots of use of “ω” symbols, representing
frequencies in radians per second.
usefulness of half-circles as an angle unit? As opposed to the dozens
or hundreds of examples of the usefulness of radians as an angle unit?
In digital signal processing circle-based units are pretty much always
more natural than radians.
For specific case of 1/2 circle, I can't see where it can be used
directly.
From algorithmic perspective, full circle looks like the most obvious
choice.
From [binary floating point] numerical properties perspective, 1/8th of
the circle (==pi/4 radians = 45 degrees) is probably the best option
for a library routine, because for sin() its derivative at 0 is closest
to 1 among all powers of two which means that loss of precision
near 0 is very similar for input and for output. But this advantage
does not sound like particularly big deal.
Apparently, you missed the part about argument reduction. For
sinpi(x), it is fairly easy to reduce x = n + r with n an integer
and r in [0,1). For the extended interval, x in [0,2^23], there are
roughly 2^23 values with r = 0.5; and thus, sinpi(x) = 1 exactly.
There are no such values for sin(x), and argument reduction for
sin(x) is much more involved.
You are working with approximations anyway. That those approximationssinpi(x), it is fairly easy to reduce x = n + r with n an integer
and r in [0,1). For the extended interval, x in [0,2^23], there are
roughly 2^23 values with r = 0.5; and thus, sinpi(x) = 1 exactly.
There are no such values for sin(x), and argument reduction for
sin(x) is much more involved.
happen to exactly equal some random value seems irrelevant.
As to real-world use, how about any physical phenomena where one is
interest in resonance frequencies of the system. For a simple
example see https://www.feynmanlectures.caltech.edu/I_49.html where
one might write f(x) = sin(kx) = sin(pi * (2*x/L)) with L a length
of say a clamped string.
I don’t see a formula anything like that anywhere on that page. Oninterest in resonance frequencies of the system. For a simple
example see https://www.feynmanlectures.caltech.edu/I_49.html where
one might write f(x) = sin(kx) = sin(pi * (2*x/L)) with L a length
of say a clamped string.
the other hand, I see lots of use of “ω” symbols, representing
frequencies in radians per second.
There are also uses with computing other functions, e.g., the true
gamma function via the Euler reflection formula.
gamma(x) * gamma(1 - x) = pi / sin(pi * x) = pi / sinpi(x)
π radians = half a circle. Are there any other examples of thegamma function via the Euler reflection formula.
gamma(x) * gamma(1 - x) = pi / sin(pi * x) = pi / sinpi(x)
usefulness of half-circles as an angle unit? As opposed to the dozens
or hundreds of examples of the usefulness of radians as an angle unit?
more natural than radians.
For specific case of 1/2 circle, I can't see where it can be used
directly.
From algorithmic perspective, full circle looks like the most obvious
choice.
From [binary floating point] numerical properties perspective, 1/8th of
the circle (==pi/4 radians = 45 degrees) is probably the best option
for a library routine, because for sin() its derivative at 0 is closest
to 1 among all powers of two which means that loss of precision
near 0 is very similar for input and for output. But this advantage
does not sound like particularly big deal.