11.07.2015 Views

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

webMathematica User Guide 295The tag takes the following required attributes.namevaluethe name of the Mathematicavariable to hold the resultJava valueAttributes of the set tag.In the following example, the Mathematica variable var is set by the Java variable num.An example of set is given above.It should be noted that until the request is finished the same kernel will be used for all the tagsevaluate, set, and get, thus any definitions and commands made in one will be visible inothers. These definitions are cleared out when the request is terminated.getThe get tag exists to get a value from Mathematica into Java. Each get tag uses the kernel thatwas allocated by request initialization to evaluate its contents.The tag takes two required attributes, which are described below.namevaluethe name of the page variable to hold the resultthe Mathematica command to be evaluatedAttributes of the get tag.In the following example, the page variable dValue with type Double is set to the result of theMathematica function Random[].An example of get is given above.It should be noted that until the request is finished the same kernel will be used for all the tagsevaluate, set, and get, thus any definitions and commands made in one will be visible inothers. These definitions are cleared out when the request is terminated.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!