gpt4 book ai didi

python - sympy.physics.vector 中缺少函数

转载 作者:行者123 更新时间:2023-11-28 21:19:14 24 4
gpt4 key购买 nike

我想使用符号数学库从向量/标量场中导出 curl/divergence 等属性。根据 sympy 文档,这可以通过 sympy.physics.vector 模块实现,

http://docs.sympy.org/dev/modules/physics/vector/api/fieldfunctions.html

http://docs.sympy.org/dev/modules/physics/vector/fields.html

但是我在这个模块的任何地方都找不到 curl/divergence 函数,根据文档应该有sympy.physics.vector.curlsympy.physics.vector.divergence

我用pip安装了版本,检查了版本是0.7.5。那么我可以在哪里找到这些功能的任何想法?也许文档不是最新的?

最佳答案

不是文档不是最新的,而是你看的文档太新了。您链接的版本是文档的 git 开发版本,版本 0.7.5 的 sympy.physics.vector 文档在这里:

http://docs.sympy.org/latest/modules/physics/vector/index.html

并且您会看到它们不包括“基本场函数的文档字符串”,因为 sympy.physics.vector.fieldfunctions 是自 0.7.5 以来的新内容。如果你想使用这些功能,你可以安装 git 开发版本,你可以在 http://docs.sympy.org/latest/install.html#git 获得相关说明。 .否则,您将不得不等待下一个 SymPy 版本发布。

关于python - sympy.physics.vector 中缺少函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25006834/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com