Previous section-----Next section

The Link Functions

There are five worksheet functions provided by the MathematicaLink add-in.

The Link functions.

Together, these functions can be used to build up expressions and perform evaluations in Mathematica in very flexible ways. For more detailed information on each worksheet functions, see Worksheet Functions.

Using the EVAL worksheet function, you can call any function defined in Mathematica. This immediately extends the number of functions available inside Excel from a few hundred to several thousand.

The EVAL function.

EVAL examples.

As shown, Mathematica syntax must be wrapped in quotes when directly typed into an Excel formula. If this is not done, Excel's formula parser will try to interpret these as Excel syntax. To avoid having to do this, you can create references to arguments in Excel cells. This is discussed in more detail in Specifying Arguments. In its single argument form, the EVAL function can also be used to evaluate Mathematica expressions such as symbols or operator forms of expressions.

The single argument form of EVAL.

EVAL single argument examples.