60
MSPBlock[ {$$fun}, 
Integrate[ $$fun, x]
]
Page variables  are Mathematica variables  that you use to hold  intermediate  values.  They are  called page  variables
since they are  cleared  when the  page  is finished.  In the example  below, the page  variable tmp  is used  to hold the
expression that was entered into the text input field (which is held in an input variable called $$expr). Note the use
of the secure function, MSPToExpression, to convert the Mathematica expression from the input.
tmp = 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  session  variable.  This,  and
further details of variables are discussed in detail in 
Advanced Topics: Variables
.
4.1.2 Coding in Pages
The purpose of webMathematica is to use Mathematica for web computation; a key part of this is placing Mathemat 
ica code in your web pages. This is done with   tags, as follows.
Integrate[ 1/(1 x^3),x]
Note that the Mathematica code will evaluate in the typical way for Mathematica and the result of the computation
will appear in the web page. You can use MSPFormat to change the way that the result is formatted, more informa 
tion on formatting in webMathematica is found in Advanced Topics: Evaluation Formatting. An example of MSP 
Format  is  shown  below;  this  formats  the  integral  into  TraditionalForm  using  a  GIF  image  to  display  the
result.
 .
<





New Page 1








Home : About Us : Network : Services : Support : FAQ : Control Panel : Order Online : Sitemap : Contact : Terms Of Service

 

Our web partners:  Jsp Web Hosting  Unlimited Web Hosting  Cheapest Web Hosting  Java Web Hosting  Web Templates  Best Web Templates  Web Design Templates  Interland Web Hosting  Cheap Web Hosting  Filemaker Web Hosting  Tomcat Web Hosting  Quality Web Hosting  Best Web Hosting  Mac Web Hosting

 
 

Virtualwebstudio. Business web hosting division of Vision Web Hosting Inc. All rights reserved

Comcast Web Hosting