1. Field of the Invention
Embodiments of the present invention generally relate to a method and apparatus for forcing measurements of angles of a triangle. More specifically, for displaying angles of a triangle as fractions of -Fr and for forcing the measurements of angles of a triangle are integer number of degrees.
2. Description of the Related Art
The internal angles of a triangle add up to 180 degrees, 200 gradians or π radians. It is possible to show the measurements of the angles so that they add up exactly to 180 degrees or 200 gradians. However, for the angles to add up exactly to π, the measurements need to be shown as rational fractions of π.
Furthermore, students first learn that the sum of the angles of a triangle is 180 degrees. However, depending on the accuracy of the measurements and the precision used in a display, the values shown on screen may not always add up to 180. Even rounding to the nearest degree is not always a solution, because the rounded value of a sum of 3 values is not always equal to the sum of the 3 rounded values. Without special processing, the values displayed on the screen may not always add up to exactly 180, which can be disconcerting for a beginner.
Therefore, there is a need for an improved method and device to allow for forcing the measurements of angles of a triangle are integer number of degrees that adds up to 180.
Embodiments of the present invention relate to a system, method and device for forcing the measurement of a triangle. The method includes computing angles A B C, BAC and ACB for a triangle ABC, determining the measurement of at least one of angles ABC, BAC and ACB in degrees, nudging the angles to ensure that they add up to 180 degrees. The method may also include determining a closest integer to the measurement of at least one of the angles ABC, BAC and ACB, rotating segment AC of the triangle ABC around A by a′-a degrees, where a is the measurement of at least one of the angles ABC, BAC and ACB and a′ is the closest integer to the measurement of at least one of the angles ABC, BAC and ACB and wherein the new position of C is C′ and angle BAC′ is equal to a′, moving point C′ along the fixed direction of line AC′, and ensuring that the other two the angles of the triangle ABC are integers.
So that the manner in which the above recited features of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only typical embodiments of this invention and are therefore not to be considered limiting of its scope, for the invention may admit to other equally effective embodiments.
When the user creates a triangle, the last vertex is “nudged” imperceptibly to force all 3 angles to be rational fractions of PI (π). Since there are an infinite number of possible rational fractions, we limit our “quantization” of the angles to something like π/180 or π/360.
The next step is to force the constructed angles to equal to an integer number of degrees, within a tolerance of a very small fraction of one degree. As a result, the displayed values will be integers that add up to exactly 180 degrees with a precision that is within a threshold.
A user may select points or place points to create triangles. Such points may be placed on a screen. After the first two points (A and B) are chosen, the user completes the triangle by selecting or placing point C. At such point, the position of C is changed in the immediate neighborhood of the original location chosen by the user. As a result, the measurements in degrees of all three angles of triangle ABC are integer numbers (which obviously add up to 180).
We want the algorithm to be as inconspicuous as possible. In other words, the final position of C is as close as possible from the original location given by the user. Thus, the user can hardly notice that the final point of the triangle was “nudged”. One possible way of achieving this is through a gradient method that would look for solutions within a small circle centered in C. Such a method may be costly in terms of computations, and become noticeable on CPU bounded systems, such as, graphing calculators, tablets, etc.
At step 212, the method 200 rotates segment AC around A by a′-a degrees, so that the new position of C is C′, and angle BAC′ is equal to a′, an integer. At step 214, the method 200 uses an algorithm (for example, a binary search algorithm, or direct trigonometric computation), move point C′ along the fixed direction of line AC′. The goal is to situate C in a position where the value of angle ABC is an integer (C″ is the new position of point C′). At step 216, the method 200 ensures that two of the angles are integers, the third one is also an integer and the problem is solved. Special care needs to be taken if the angle values become very small. One solution is to prevent the angle measurements to go below 1 degree of above 178 degrees. The method ends at step 218.
While the foregoing is directed to embodiments of the present invention, other and further embodiments of the invention may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow.
This application claims priority from U.S. Provisional Patent Application No. 61/906,707 filed on Nov. 20, 2013, which is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
61906707 | Nov 2013 | US |