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 157Here the input is MathML.In[5]:= $$e2 = "x2"Out[5]= x2In[6]:=MSPToExpression@ $$e2DOut[6]= x 2MSPBlock provides additional functionality to work with the interpreted value of an input variable.This is described further in the Mathematica Function Reference section.webMathematica carries out validation to ensure the security of the system. Validation involveschecking any input that was sent to the server to see if it is safe to be used in a Mathematicacomputation. You can find more information on the topic in the Security section.Interpreted versus Noninterpreted ValuesAs described above, whenever you work with an input variable, you need to decide how to workwith its value. You can work with the noninterpreted value and make choices based uponits setting. (This will be a string.) Alternatively, you can interpret the value so that it canbe used for computation in Mathematica. This section gives an example of working withboth interpreted and noninterpreted values. If you installed webMathematica as describedabove, you should be able to connect to this JSP via http://localhost:8080/webMathematica/Examples/SimplifyIntegrate.jsp.Here is a listing of the form element from the JSP SimplifyIntegrate.jsp.Input:integrand = Null;If[ MSPValueQ[ $$expr],integrand = MSPToExpression[ $$expr]] ;

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

Saved successfully!

Ooh no, something went wrong!