A. The Basic Mathematica Interface.


Example A.1: Standard Text Output.

Requests for simulation that do not contain any plotting command result in normal text output. This short sequence of commands illustrates a few of Mathematica's algebraic manipulation functions, and demonstrates the formatting of the algebraic results. Note that WebMath's "Standard Mathematica Output" display mode is selected.

-UnixWebMath- 
Input Block:

Adjacent images can be compiled into a movie and 3D graphics can be converted to a VRML format:
Note: VRML images require a VRML viewer and Movies require a MPEG viewer. 

Select a display mode 

Enter values in this section only if you are submitting a job for later retrieval:

Title for job: 
Email address: 
Brief description of the job:
 
Mathematica Output 
                 -6 - 2 Sqrt[21]         -6 + 2 Sqrt[21]
{{x -> 0}, {x -> ---------------}, {x -> ---------------}}
                        2                       2
{{x -> 0}, {x -> -3 - Sqrt[21]}, {x -> -3 + Sqrt[21]}}
 
Processed by Mathematica version 2.2 running on a UNIX platform. 
This script was developed at the Center for Computational Electromagnetics (CCEM) - University of Illinois at Urbana with funding from the Sloan Center for Asynchronous Learning Environments(SCALE) 

Example A.2: Standard Graphical Output.

Command sequences that result in charts or other graphical objects have output rendered in GIF format by default. The following request results in Sin(x) being plotted over a single period, produced in GIF format. Again, the "Standard Mathematica Output" display mode has been chosen since only text and static two-dimensional plots are being requested.

-UnixWebMath- 
Input Block:
 

Adjacent images can be compiled into a movie and 3D graphics can be converted to a VRML format:
Note: VRML images require a VRML viewer and Movies require a MPEG viewer. 

Select a display mode 

Enter values in this section only if you are submitting a job for later retrieval:

Title for job: 
Email address: 
Brief description of the job:
 
Mathematica Output 


 
Processed by Mathematica version 2.2 running on a UNIX platform. 
This script was developed at the Center for Computational Electromagnetics (CCEM) - University of Illinois at Urbana with funding from the Sloan Center for Asynchronous Learning Environments(SCALE) 

Example A.3: Animated Graphical Output.

When plots are produced in an unbroken sequence, they can be animated and saved in MPEG format along with or completely replacing the corresponding static images. The code in the next section along with the selction of the "Movies Only" display mode results in the following 10 frame MPEG formatted animation.

-UnixWebMath- 
Input Block:

Adjacent images can be compiled into a movie and 3D graphics can be converted to a VRML format:
Note:VRML images require a VRML viewer and Movies require a MPEG viewer.

Select a display mode

Enter values in this section only if you are submitting a job for later retrieval:

Title for job: 
Email address: 
Brief description of the job:
 
Mathematica Output 

(Click on the graph to download an mpeg movie)
Processed by Mathematica version 2.2 running on a UNIX platform. 
This script was developed at the Center for Computational Electromagnetics (CCEM) - University of Illinois at Urbana with funding from the Sloan Center for Asynchronous Learning Environments(SCALE) 

Example A.4: VRML Model Output.

VRML models can be rendered when three-dimensional images are encountered. The output page contains a link to the VRML object directly preceding the corresponding static image. These objects require a VRML viewer. The viewer that has been found to be the best in terms full color output, ease of use and cross platform availability is "VRWEB," which can be downloaded from the VRML Repository. Note that "VRML and Images" is selected as the display option.

-UnixWebMath- 
Input Block:
 

Adjacent images can be compiled into a movie and 3D graphics can be converted to a VRML format:
Note: VRML images require a VRML viewer and Movies require a MPEG viewer. 

Select a display mode 

Enter values in this section only if you are submitting a job for later retrieval:

Title for job: 
Email address: 
Brief description of the job:
 
Mathematica Output 

rendition of:


 
Processed by Mathematica version 2.2 running on a UNIX platform. 
This script was developed at the Center for Computational Electromagnetics (CCEM) - University of Illinois at Urbana with funding from the Sloan Center for Asynchronous Learning Environments(SCALE) 


Example A.5: Job Submission.

Some tasks, even those generated by only a few lines of code, may require extensive CPU time. The following demonstrates the use of WebMath's job submission feature which allows the user to execute codes demanding significant CPU resources, without having to wait for results. 

Submission

To submit a job for background processing by WebMath, input commands are specified and a job title is provided indicating that this submission should be run in the noninteractive mode. The following short set of command creates a large MPEG encoded animation consisting of 100 frames.

-UnixWebMath- 
Input Block:

Adjacent images can be compiled into a movie and 3D graphics can be converted to a VRML format:
Note: VRML images require a VRML viewer and Movies require a MPEG viewer. 

Select a display mode 

Enter values in this section only if you are submitting a job for later retrieval:

Title for job: 
Email address: 
Brief description of the job:
 
This script was developed at the Center for Computational Electromagnetics (CCEM) - University of Illinois at Urbana with funding from the Sloan Center for Asynchronous Learning Environments(SCALE) 

Submission Verification

When a job title (and optionally an e-mail address and /or a description of the job) is provided. The following message is posted immediately to indicate that the input has been properly received and that the processes requested are commencing. Since this screen originates from WebMath, it will continue to load until the job is complete which provides and alternative indication of job completion.


WinWebMath --
Your job has been successfully submitted and is underway. When it is completed it will be added to the completed jobs list:
Completed Jobs 
If you had errors in your code the results will still be posted so please contact us to remove that job (you can use the Mail button at the bottom of this page).
[HOME] [MAIL
This page will continue to load until your job is complete,feel free to stop loading at any time.
This script was developed at the Center for Computational Electromagnetics (CCEM) - University of Illinois at Urbana with funding from the Sloan Center for Asynchronous Learning Environments (SCALE)

Posted Results

The results from a job submitted in the noninteractive mode are posted as individual web pages that are stored on the AWS until an administrator removes them (using an automated job administration tool). They can be found by browsing through the list of completed jobs or by going directly to the results' URL given in the e-mail message sent to the user after the requested output has been completely generated. The following illustrates the format of a static results web page for the previously specified input.

-UnixWebMath- 

In[1] :=
Needs["Graphics`Shapes`"];
Table[Show[
    Graphics3D[{EdgeForm[Hue[Cos[r/10]^2]],Sphere[Sin[r]+2,30,30]},
          FaceGrids->All],PlotRange->{{-3,3},{-3,3},{-3,3}},Axes->True,
      ViewPoint->{Cos[r/4]+2,Sin[r/3]+2,2}],{r,0,25,.25}];
Mathematica Output 


 
Processed by Mathematica version 2.2 running on a UNIX platform. 
This script was developed at the Center for Computational Electromagnetics (CCEM) - University of Illinois at Urbana with funding from the Sloan Center for Asynchronous Learning Environments(SCALE) 

Back to main page