Niven's Theorem #
This file proves Niven's theorem, stating that the only rational angles in degrees which
also have rational cosines, are 0, 30 degrees, and 90 degrees - up to reflection and shifts
by π. Equivalently, the only rational numbers that occur as cos(π * p / q) are the five
values {-1, -1/2, 0, 1/2, 1}.
exp(q * π * I) for q : ℚ is integral over ℤ.
2 sin(q * π) for q : ℚ is integral over ℤ, using the complex sin function.
2 cos(q * π) for q : ℚ is integral over ℤ, using the complex cos function.
sin(q * π) for q : ℚ is algebraic over ℤ, using the complex sin function.
cos(q * π) for q : ℚ is algebraic over ℤ, using the complex cos function.
tan(q * π) for q : ℚ is algebraic over ℤ, using the complex tan function.
2 sin(q * π) for q : ℚ is integral over ℤ, using the real sin function.
2 cos(q * π) for q : ℚ is integral over ℤ, using the real cos function.
Alias of Real.isIntegral_two_mul_cos_rat_mul_pi.
2 cos(q * π) for q : ℚ is integral over ℤ, using the real cos function.
sin(q * π) for q : ℚ is algebraic over ℤ, using the real sin function.
cos(q * π) for q : ℚ is algebraic over ℤ, using the real cos function.
tan(q * π) for q : ℚ is algebraic over ℤ, using the real tan function.