void PutNext(
ExpressionType type
)
Sub PutNext (
type As ExpressionType
)
void PutNext(
ExpressionType type
)
abstract PutNext :
type : ExpressionType -> unit
Here is how you could send Derivative[2][f]:
ml.PutNext(ExpressionType.Function); // The func we are putting has head Derivative[2], arg f
ml.PutArgCount(1); // this 1 is for the 'f'
ml.PutNext(ExpressionType.Function); // The func we are putting has head Derivative, arg 2
ml.PutArgCount(1); // this 1 is for the '2'
ml.PutSymbol("Derivative");
ml.Put(2);
ml.PutSymbol("f");
Here is an example of sending an integer in "textual" form. This would be useful if you happened to have the digits of the integer in the form of an array of bytes rather than an int type:
byte[] digits = {(byte)'1', (byte)'2', (byte)'3'};
ml.PutNext(ExpressionType.Integer);
ml.PutSize(digits.Length);
ml.PutData(digits);
MathLinkException | On any MathLink error. |