Possible to use Mathematica from other programming

2019-06-20 17:31发布

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?

5条回答
ゆ 、 Hurt°
2楼-- · 2019-06-20 17:42

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

查看更多
别忘想泡老子
3楼-- · 2019-06-20 17:43

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

查看更多
Melony?
4楼-- · 2019-06-20 17:44

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楼-- · 2019-06-20 17:52

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

查看更多
放我归山
6楼-- · 2019-06-20 18:00

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.

查看更多
登录 后发表回答