Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

It is a simple practical question.

I am reverse-engineering poorly documented calculations made by someone else. I frequently find a mysterious number 0.0329. I'm quite certain it is some kind of simple fraction, but how can I find it?

Since the algorithm, which tries to match simple fractions to a given decimal representation should be fairly easy to write, I'm sure someone else did it and I don't have to reinvent the wheel. I just don't know where to look and what phrase to put on Google.

Can someone help me, please?

share|improve this question
    
Do you mean that you are looking for smth like: given a decimal number $x$ and a precision $\epsilon$ find the smallest integer $m,n$ such that $$ \left|x - \frac mn\right|<\epsilon $$ –  S.D. Nov 30 '12 at 9:53
add comment

1 Answer

up vote 3 down vote accepted

Type in your decimal expansion here, http://www.mindspring.com/~alanh/fracs.html, it should give you a list of succsessivly more accurate rational approximations to your decimal expression.

If you don't think the decimal expansion is rational, type it on http://www.wolframalpha.com/ they can compare it with irrational constants and outputs of transcendetal functions, like if I typed in the first 7 digits of $\sin(3/6)$, they would list that as a probable result.

share|improve this answer
1  
Try also the Continued Fraction Calculator. –  lhf Nov 30 '12 at 11:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.