Interface with Mathematica.
More...
|
virtual void | Init () |
| Initializes the current Mathematica interface object. More...
|
|
virtual void | Init (IKernelLink ml) |
| Initializes the current Mathematica interface object. More...
|
|
|
readonly object | _lock = new object() |
|
Interface with Mathematica.
IG.Lib.MathematicaInterface.MathematicaInterface |
( |
| ) |
|
|
inline |
Constructs a new Mathematica interface object, without initializing a Mathematica link.
Link is initialized the first time it is used.
IG.Lib.MathematicaInterface.MathematicaInterface |
( |
IKernelLink |
ml | ) |
|
|
inline |
Constructs a new Mathematica interface object, initialized with the specified Mathematica link.
- Parameters
-
ml | The Mathematica link which is assigned to the object for communication with Mathematica. If null then no link is assigned and a link will be created the first time it is used. |
IG.Lib.MathematicaInterface.MathematicaInterface |
( |
MathKernel |
kernel | ) |
|
|
inline |
Constructs a new Mathematica interface object, initialized with the specified Mathematica link.
- Parameters
-
kernel | The Mathematica kernel which is assigned to the object for communication with Mathematica. |
virtual void IG.Lib.MathematicaInterface.Init |
( |
| ) |
|
|
inlineprotectedvirtual |
Initializes the current Mathematica interface object.
virtual void IG.Lib.MathematicaInterface.Init |
( |
IKernelLink |
ml | ) |
|
|
inlineprotectedvirtual |
Initializes the current Mathematica interface object.
This sets the mathematica link if the specified link (argument ml ) is not null.
- Parameters
-
ml | The Mathematica link which is assigned to the object for communication with Mathematica. |
virtual void IG.Lib.MathematicaInterface.Init |
( |
MathKernel |
kernel | ) |
|
|
inlinevirtual |
Initializes the current Mathematica interface object.
This sets the mathematica kernel if the specified kernel (argument ml ) is not null.
- Parameters
-
kernel | The Mathematica kernel which is assigned to the object for communication with Mathematica. |
double IG.Lib.MathematicaInterface.EvaluateScalarFunction |
( |
string |
functionName, |
|
|
double |
functionArgument |
|
) |
| |
|
inline |
Evaluates mathematica function that takes one numerical argument and returns a number.
Example: double res = EvaluateDoubleFunction("Sin",0.5);
- Parameters
-
functionName | Name of the function. |
functionArgument | Argument of function. |
- Returns
- Function value.
double IG.Lib.MathematicaInterface.EvaluateScalarFunction |
( |
string |
functionName, |
|
|
double[] |
functionArguments |
|
) |
| |
|
inline |
Evaluates mathematica function that takes one array argument and returns a number.
Example: double res = EvaluateDoubleFunction("Plus",0.5,0.2);
- Parameters
-
functionName | Name of the function. |
functionArguments | Arguments of function. |
- Returns
- Function value.
double IG.Lib.MathematicaInterface.EvaluateScalarFunction |
( |
string |
functionName, |
|
|
IVector |
functionArguments |
|
) |
| |
|
inline |
Evaluates mathematica function that takes one array argument and returns a number.
Example: double res = EvaluateDoubleFunction("Plus",0.5,0.2);
- Parameters
-
functionName | Name of the function. |
functionArguments | Arguments of function. |
- Returns
- Function value.
string IG.Lib.MathematicaInterface.EvaluateExpression |
( |
string |
expression | ) |
|
|
inline |
Evaluates the specified expression in Mathematica and returns the result in output form as string.
- Parameters
-
expression | Mathematical expression to be evaluated. |
- Returns
- Result of evaluation in string form.
int IG.Lib.MathematicaInterface.EvaluateIntegerExpression |
( |
string |
expression | ) |
|
|
inline |
Evaluates an integer-valued expression in Mathematica and returns its value.
- Parameters
-
expression | Integer-valued expression to be evaluated. |
- Returns
- V of the expression.
double IG.Lib.MathematicaInterface.EvaluateDoubleExpression |
( |
string |
expression | ) |
|
|
inline |
Evaluates an real (double)-valued expression in Mathematica and returns its value.
- Parameters
-
expression | Expression to be evaluated. |
- Returns
- Value of the expression.
static void IG.Lib.MathematicaInterface.ExampleCalculator |
( |
| ) |
|
|
inlinestatic |
static void IG.Lib.MathematicaInterface.ExampleCalculator |
( |
bool |
wrapNumerical | ) |
|
|
inlinestatic |
Example use of Mathematica interface - a simple calculator.
- Parameters
-
wrapNumerical | Specifies whether expressions should return rounded numerical values when possible (i.e. they are wrapped in 'N[...]' before sent to evaluation). |
References IG.Lib.UtilConsole.Read().
readonly object IG.Lib.MathematicaInterface._lock = new object() |
|
private |
IKernelLink IG.Lib.MathematicaInterface._mathLink |
|
protected |
Wolfram.NETLink.MathKernel IG.Lib.MathematicaInterface._mathKernel |
|
protected |
object IG.Lib.MathematicaInterface.Lock |
|
get |
Gets the global Mathematica interface.
IKernelLink IG.Lib.MathematicaInterface.MathLink |
|
getprotected set |
Mathematica's link object.
Getter always returns a valid link object, creating a new one if not yet created.
MathKernel IG.Lib.MathematicaInterface.MathKernel |
|
getprotected set |
The documentation for this class was generated from the following file: