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.

80 webMathematica User GuideThe following generates content MathML.MSPFormat[ expr, TraditionalForm, ContentMathML]Tools for working with MathML typically support both content and presentation.MathML Integrate ExampleThis example JSP uses the MathML stylesheet. The page is actually a combination of two JSPs,IntegrateForm.jsp and IntegrateXSLT.jsp, that use JavaScript. They are closely modeled onthe standard webMathematica examples PlotScript.jsp and PlotScript1.jsp. The source forthese MathML examples is available in webMathematica/Examples/MathML. If you installedwebMathematica as described above, you should be able to connect to this JSP via http://localhost:8080/webMathematica/Examples/MathML/IntegrateForm.jsp. (You may have someother URL for accessing your server.)You first see the source for the input page, IntegrateForm.jsp.MathML Example: Integrate a Functionfunction integrate(f, page){if ( page == 1)pageToLoad = "IntegrateXSLT.jsp"else if ( page == 2)pageToLoad = "IntegrateXML.jsp"elsepageToLoad = "IntegrateMathPlayer.jsp"win = window.open( pageToLoad + "?fun=" + URLescape(f.fun.value),"integrate","toolbar=none,resizeable=yes,width=450,height=350");}

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

Saved successfully!

Ooh no, something went wrong!