MathLink API

Extensively used within the Mathematica system itself, MathLink is Mathematica's unique high-level symbolic interface standard for interprogram communication. With convenient bindings for a variety of languages, MathLink immediately allows arbitrary symbolic objects—representing data, programs, or any other construct—to be efficiently exchanged between programs, on one computer or across a heterogeneous network.

ReferenceReference

Installable MathLink Programs »

Install run a MathLink installable external program

LinkPatterns find functions available in a running MathLink program

mprep, mcc externally prepare a MathLink installable program

MathLink Mathematica Functions »

LinkLaunch, LinkConnect, LinkCreate initiate MathLink programs and connections

LinkRead, LinkWrite read and write expressions on a MathLink connection

Links list all currently open links

C Language Functions »

MLPutInteger32() ▪ MLGetInteger32() ▪ MLPutString() ▪ MLPutFunction() ▪ ...

MLOpenString() ▪ MLNextPacket() ▪ MLTransferExpression() ▪ ...

Java Functions »

evaluate() ▪ evaluateToOutputForm() ▪ evaluateToImage() ▪ ...

put() ▪ getInteger() ▪ getObject()

createKernelLink() ▪ waitForAnswer()

C#/.Net Functions »

Evaluate() ▪ EvaluateToOutputForm() ▪ EvaluateToImage() ▪ ...

Put() ▪ GetInteger() ▪ GetObject()

CreateKernelLink() ▪ WaitForAnswer()

New to Mathematica? Find your learning path »
Have a question? Ask support »