.NET/Link Example: MathKernel Demo

 

This example demonstrates the .NET/Link MathKernel component, which provides a very high-level interface for using Mathematica from .NET programs.

The MathKernel class is especially suited to visual programming environments, as it is highly configurable via properties. This example includes the Visual Studio .NET solution file that was used to create it. You can open it in Visual Studio and inspect it, modify it, etc.

The only code that was written by hand in this program is the computeButton_Click method at the end of the Form1.cs file. As you can see, we only needed to write a few lines of code to create this entire program.

More documentation about the methods and properties of the MathKernel class is available in the .NET/Link API Documentation.