User Portlet
Discussions |
---|
Python's sympy has a function called nsimplify that can do this: >>> from sympy import * >>> nsimplify(4.242640687119286) 3*sqrt(2) >>> nsimplify(pi, tolerance=1e-7) exp(141/895 + sqrt(780631)/895) It finds closed form approximations... |