【问题标题】:Missing functions in sympy.physics.vectorsympy.physics.vector 中缺少函数
【发布时间】:2014-07-29 01:18:34
【问题描述】:

我想使用符号数学库从矢量/标量字段中导出 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 版本。 那么我可以在哪里找到这些功能的任何想法?也许文档不是最新的?

【问题讨论】:

    标签: python sympy


    【解决方案1】:

    不是文档不是最新的,而是您正在查看的文档太新。您链接的版本是文档的 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 版本发布。

    【讨论】:

    • 感谢您的快速回复,我想我会坚持使用开发版:)
    【解决方案2】:

    文档是here,但我不能假装它看起来特别容易理解。看起来文档不完整(7.0 版本不同),所以您可能需要转转一段时间或直接询问同情的人。

    【讨论】:

      【解决方案3】:

      如果您想描述您希望做什么,我可以使用我的新 sympy 分支 (https://github.com/brombo/sympy) 使用 galgebra 向您展示如何做到这一点。可以通过 abrombo@verizon.net 联系我。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2016-10-24
        • 2014-04-06
        • 2017-12-03
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-05-22
        • 2016-12-26
        相关资源
        最近更新 更多