Possible to use Mathematica from other programming languages (python/C#)?

♀尐吖头ヾ 提交于 2020-01-24 04:23:46

问题


Is it possible to use Mathematica's computing capabilities from other languages? I need to do some complex operations (not necessarily symbolic, btw), and it'd be pretty sweet to be able to just call Mathematica's functions or running Mathematica's code right from my python/c#'s program.

Is it possible?


回答1:


Looks like there is a MathLink API you can use from C#, c or Java, have you checked this out?

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




回答2:


To links about usage of python and .Net (for C#)




回答3:


Perhaps the easiest way is to make the Mathematica program its own self-contained script and just call it as a system call or pipe stuff to/from it via stdin/stdout. Here's how to do that:

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




回答4:


I haven't used it, but this looks interesting. Looks like you can call Mathematica code directly from your C# app using .NET/Link (a product by Wolfram).




回答5:


Yes but there are some subtleties. I covered Mathematica .NET interoperability in my book F# for Scientists but dropped the subject for its successor F# for Technical Computing.



来源:https://stackoverflow.com/questions/1783564/possible-to-use-mathematica-from-other-programming-languages-python-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!