可能从其他编程语言(python/C#)使用Mathematica?
是否可以使用Mathematica的其他语言的计算功能?我需要做一些复杂的操作(不一定是符号的,btw),并且能够从我的python/c#程序中直接调用Mathematica的函数或运行Mathematica的代码,这将非常美妙。可能从其他编程语言(python/C#)使用Mathematica?
可能吗?
看起来像是一个MathLink API,你可以在C#,C或Java中使用,你检查过了吗?
http://reference.wolfram.com/mathematica/guide/MathLinkAPI.html
至大约python使用和.Net (for C#)
“目前,PYML支持Mathematica 2.2和3.0。” –
这似乎较新http://code.google.com/p/pythonika/ – ziyuang
也许最简单的单向链接是使数学程序自身的自包含的脚本,只是把它作为一个系统调用或管道的东西/从它通过标准输入/标准输出。以下是如何做到这一点:
Call a Mathematica program from the command line, with command-line args, stdin, stdout, and stderr
是的,但也有一些细微之处。我在我的书F# for Scientists中介绍了Mathematica .NET的互操作性,但是放弃了其后继者F# for Technical Computing的主题。
你也可以找到http://stackoverflow.com/questions/1352414/complex-calculations的答案。 – Pillsy