views:

467

answers:

5

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  A: 

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).

jheddings
+4  A: 

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

Sean
+3  A: 

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

Kai
"Currently, PYML supports Mathematica 2.2 and 3.0."
devoured elysium
+1  A: 

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:

http://stackoverflow.com/questions/148057/calling-a-mathematica-program

dreeves
A: 

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.

Jon Harrop