We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a26598b commit 99b6fe4Copy full SHA for 99b6fe4
1 file changed
numerics/angle_reduction.hpp
@@ -31,7 +31,9 @@ constexpr Angle one_π;
31
template<typename Angle>
32
constexpr Angle two_π;
33
34
-//TODO(phl)comment
+// Performs Payne-Hanek reduction of `x`. `x_reduced` is in [-π / 4, π / 4],
35
+// and the `quadrant` ranges from 0 to 3. 0 is a quadrant centered on the
36
+// positive x axis, 1 on the positive y axis, and so on.
37
template<std::int64_t precision>
38
void PayneHanek(Angle const& x,
39
DoublePrecision<Angle>& x_reduced,
0 commit comments