在python / scipy,numpy,sympy中是否有等效于Mathematicas RootApproximant函数?

埃里克·德海特

我正在寻找等效于python或python lib中的Mathematicas RootApproximant函数:https ://reference.wolfram.com/language/ref/RootApproximant.html

基本上,此函数查找数字的代数根,例如

RootApproximant[1.414213] -> sqrt(2)

谢谢!

水槽

sympy.nsimplifympmath.identify内部使用

>>> nsimplify(1.414213, tolerance=1e-6)
√2

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

在Python中是否有等效于R apply函数的函数?

是否有R函数等效于Python中的range?

C ++中是否有任何等效于python中字典的get函数的函数?

JavaScript是否等效于Python的format()函数?

R是否等效于Python函数“ dir”?

Python是否等效于R poly()函数?

在Python中,是否有C ++等效于声明一个函数并在使用后对其进行定义?

等效于PHP中Python的dir函数

在Julia中是否有等效于matlab的rcond()函数?

C#中是否有等效于SQL NULLIF的函数?

是否有Rust等效于C ++中的clock函数?

R是否等效于python的字符串`format`函数?

Python是否等效于Matlab函数“填充”的灰度?

VBA中是否有等效于Python的pass语句?

Elixir中是否有等效于Python的dir()

Groovy 中是否有等效于 Python 产量的行为?

在C#中是否有等效于Python的ImportError

是否有等效于python中的any方法的方法

在Python中是否有等效于RStudio的“ .rs.askForPassword”?

Elixir中是否有等效于Python的defaultdict的代码?

Matlab中存在Optimset函数,是否有Python等效项?

Golang中Python的“ id”函数等效于什么?

JavaScript中的python any()和all()函数等效于什么?

C ++中的Python函数修饰符等效于什么?

等效于Python的“异步def”函数中的“ yield”

在 bash 中编写等效于 Python 的输入函数

是否等效于Oracle中的cbind()函数?

是否有与R的sample()函数等效的Python?

是否有与 Python 的 getattr() 函数等效的 Javascript?