Integer Trig Hunt

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

A mathematical hunt:


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?


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



Permanent Citation

Michael Trott with permission of Springer "Integer Trig Hunt"
Wolfram Demonstrations Project
Published: March 7 2011

Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.