Take the 2-minute tour ×
MathOverflow is a question and answer site for professional mathematicians. It's 100% free, no registration required.

I know that it may turn out useless, but this is precisely the reason why I'm asking.

Does any one know of an existing piece of code that would find me the best approximation to a given irrational number using ordinary math symbols and known constants like e, pi etc.?

share|improve this question
add comment

2 Answers

The Inverse Symbolic Calculator sounds like what you want (it's not clear from your question what form you have the number in to start with).

share|improve this answer
    
That's exactly what I needed! Thank you. –  Ranza Apr 6 '13 at 8:37
add comment

You can use LLL or PSLQ to approximate your number by a linear combination over the integers of a given finite set of numbers. Or apply them to logarithms to approximate your number as a product of powers of given numbers. In Maple, use the IntegerRelations package.

share|improve this answer
1  
The identify() function is easier to start with. –  Brendan McKay Apr 6 '13 at 12:49
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.