28 points · by edwintorok · 13y ago · 14 comments
ex: You want to calculate 150[degrees] in radians. Simple you say, just convert using your calculator: 150 [degrees] = 2.35619449019 [rad].
However On an exam/homework you would lose marks for this answer since it is not given "the right way" (as a fraction of pi). Using this app you can find out that 2.35619449019 [rad] = (3*pi)/4 [rad] and get all points.
Cool.
[1] http://mrob.com/pub/ries/index.html
The HP-48 series calculators and their successors have commands to convert from floating point to the approximately equivalent rationals or fraction of pi, but not exponentials or radicals or anything else like that. The tolerance for the approximation is determined by how many digits of the floating point number the calculator is set to display, so if you know the denominator is supposed to be small, you can force the calculator to produce the right answer even if you have relatively few decimal digits to work with or if there's a lot of rounding error.
Clearly we could use this calculator. :P
Since 2/5 is 0.4, I thought it was because just entering '4' meant '0.4', but entering '4.0' and it produced the same result.
You can construct a basis that contains a load of constants (pi, pi/2, pi/3, sqrt(pi) etc), and combinations of constants (pi*e, e^pi etc). Then you can use an integer relation algorithm [1] like PSLQ [2,3] to find integer coefficients with which to express the desired number in terms of elements of the basis.
[1] http://en.wikipedia.org/wiki/Integer_relation_algorithm [2] http://arminstraub.com/files/pslq.pdf [3] http://mathworld.wolfram.com/PSLQAlgorithm.html
http://www.johndcook.com/blog/2013/04/30/recognizing-numbers...
Standard lookup results for 1
Best guess: 1/10