Integer Trig Hunt
A mathematical hunt:[more]
This Demonstration considers expressions of the form where , , , , and are positive rational numbers or integers and is one of the six trigonometric functions, sin, cos, tan, cot, sec, or csc. For any set of such parameters, the value will never be an integer (nor even an algebraic number).
The goal of the hunt is to find values of the parameters such that is as near as possible to an integer. Easy integers are excluded, like the sine or cosine of a small number, which can easily be made very close to 0 or 1. Using all possible slider combinations, more than possible values of can be tested, allowing the hunter to be busy for weeks. How small can you make the difference between the value and an integer?[less]
Contributed by: Michael Trott with permission of Springer (March 2011)
From: The Mathematica GuideBook for Programming, second edition by Michael Trott (© Springer, 2008).
Open content licensed under CC BY-NC-SA