0
$\begingroup$

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.?

$\endgroup$

2 Answers 2

6
$\begingroup$

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).

$\endgroup$
1
  • $\begingroup$ That's exactly what I needed! Thank you. $\endgroup$
    – Ranza
    Apr 6, 2013 at 8:37
1
$\begingroup$

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.

$\endgroup$
1
  • 1
    $\begingroup$ The identify() function is easier to start with. $\endgroup$ Apr 6, 2013 at 12:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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