我正在寻找等效于python或python lib中的Mathematicas RootApproximant函数:https ://reference.wolfram.com/language/ref/RootApproximant.html
基本上,此函数查找数字的代数根,例如
RootApproximant[1.414213] -> sqrt(2)
谢谢!
看sympy.nsimplify
(mpmath.identify
内部使用)
>>> nsimplify(1.414213, tolerance=1e-6)
√2
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句