|
Mathematica as a Software Component
Mathematica has a modular architecture that makes it easy to use as a highly powerful software component.


Integrate[Sqrt[Log[x]], x]
MathLink provides a general program-level interface between Mathematica and external programs.
/* Integrate[Sqrt[Log[x]], x] */
MLPutFunction( stdlink, "EvaluatePacket", 1); MLPutFunction( stdlink, "Integrate", 2); MLPutFunction( stdlink, "Sqrt", 1); MLPutFunction( stdlink, "Log", 1); MLPutSymbol( stdlink, "x", 1); MLPutSymbol( stdlink, "x"); MLEndPacket( stdlink);




You can use MathLink to access the Mathematica kernel from many kinds of programs.



MathLink can also be used to access other programs from within the Mathematica kernel.
:Begin: :Function: anneal :Pattern: TSPTour[r:{{_, _}..}] :Arguments: {First[Transpose[r]], Last[Transpose[r]], Length[r], Range[Length[r]]} :ArgumentTypes: {RealList, RealList, Integer, IntegerList} :ReturnType: Manual :End:



|
You can use MathLink to control the Mathematica front end from within the kernel.
|

You can use MathLink to communicate between Mathematica kernels — on one computer or several.









THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT. SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION. |