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.

168 webMathematica User GuideGraphics and Image FormattingThere are several convenient functions for formatting graphics objects so that a picture appearsin the output. The example below uses MSPShow to display a plot.MSPShow[ Plot[Sin[x],{x,0,2Pi}]]Suppressing OutputYou may want to use the msp:evaluate tag to evaluate something without leaving output inthe resulting page. This can be done by adding a semicolon ';' after the computation, as shownbelow.Needs[ "MyPackage"];Adding a semicolon causes the Mathematica symbol Null to be returned, and this is formattedto leave no trace in the output.Output is suppressed whatever the computation, whether it uses one of the formatting functions,a graphics function, or a function that returns Print or Message output. In the followingexample, no output will be seen from the message output function because it is followed by asemicolon.MSPGetMessages[];Multiple CalculationsTo calculate more than one result in an msp:evaluate tag, the different steps must be separatedwith a semicolon ';'. The result of the last computation will be formatted and appear inthe output page. In the example below, the numerical result of x+y computation will appear.x = Sin[5.6];y = Sqrt[x];x+yIf you wish to suppress the result of the last computation, you can use a semicolon ';' asdescribed in the section on Suppressing Output.

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

Saved successfully!

Ooh no, something went wrong!