【问题标题】:Possible to use Mathematica from other programming languages (python/C#)?可以从其他编程语言(python/C#)中使用 Mathematica 吗?
【发布时间】:2009-11-23 14:45:33
【问题描述】:

是否可以从其他语言使用 Mathematica 的计算功能?我需要做一些复杂的操作(不一定是符号的,顺便说一句),如果能够直接从我的 python/c# 程序调用 Mathematica 的函数或运行 Mathematica 的代码,那就太好了。

有可能吗?

【问题讨论】:

标签: c# python wolfram-mathematica mathlink


【解决方案1】:

看起来有一个可以在 C#、c 或 Java 中使用的 MathLink API,你检查过吗?

http://reference.wolfram.com/mathematica/guide/MathLinkAPI.html

【讨论】:

    【解决方案2】:

    关于python.Net (for C#)使用的链接

    【讨论】:

    • "目前,PYML 支持 Mathematica 2.2 和 3.0。"
    【解决方案3】:

    也许最简单的方法是让 Mathematica 程序成为它自己的独立脚本,然后将其作为系统调用调用或通过 stdin/stdout 将内容传入/传出。这样做的方法如下:

    Call a Mathematica program from the command line, with command-line args, stdin, stdout, and stderr

    【讨论】:

      【解决方案4】:

      我没用过,但是this looks interesting。看起来您可以使用 .NET/Link(Wolfram 的产品)直接从您的 C# 应用程序调用 Mathematica 代码。

      【讨论】:

        【解决方案5】:

        是的,但有一些微妙之处。我在我的书 F# for Scientists 中介绍了 Mathematica .NET 互操作性,但放弃了它的继任者 F# for Technical Computing 的主题。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2020-02-06
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多