11.07.2015 Views

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

webMathematica User Guide 65tmp = Null;tmp = MSPToExpression[ $$expr] ;If[ tmp =!= Null,....]If you want your variable to persist from one page to another, you can declare it as a sessionvariable. This and further details of variables are discussed in detail in Advanced Topics:Variables.Coding in PagesThe purpose of webMathematica is to use Mathematica for web computation; a key part of thisis placing Mathematica code in your web pages. This is done with evaluate tags, as follows.Integrate[ 1/(1-x^3),x]Note that the Mathematica code will evaluate in the typical way for Mathematica and the resultof the computation will appear in the web page. You can use MSPFormat to change the way thatthe result is formatted; more information on formatting in webMathematica is found inAdvanced Topics: Evaluation Formatting. An example of MSPFormat is shown below; this formatsthe integral into TraditionalForm using a GIF image to display the result.MSPFormat[ Integrate[ 1/(1-x^3),x], TraditionalForm]If you do not wish to see the result in the web output, you can suppress it by using a semicolon';'. In the following example an assignment is made to the variable x, but no output appears.

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

Saved successfully!

Ooh no, something went wrong!