lunduniversity.lu.se

Computer Science

Faculty of Engineering, LTH

Denna sida på svenska This page in English

Local Maple Service

 

This page describes a web service for evaluating Maple worksheets. The service is accessed using http post operations to http://vm28.cs.lth.se:8080/maple/evaluate. The service is available within the cs.lth.se domain.

Example

Paste maple code into the text box below, select format, and submit. For example, paste the text below into the text box, choose text format and press evaluate:

f:=(xmin,x)->xmin<x;
CodeGeneration:-Java(f,output=string);

which should give the output:

(xmin, x) -> xmin < x
"class CodeGenerationClass {\n public static boolean f (double xmin, double x)\n {\n return(xmin < x);\n }\n}\n"

or use the xml sheet format:

<?xml version="1.0" ?>
<Worksheet xmlns="http://vm28.cs.lth.se:8080/maple">
    <Line n="1">
        <Input><![CDATA[f:=(xmin,x)->xmin<x;]]></Input>
    </Line>
    <Line n="2">
        <Input><![CDATA[CodeGeneration:-Java(f,output=string);]]></Input>
    </Line>
</Worksheet>

which should give:

<?xml version="1.0" ?>
<Worksheet xmlns="http://vm28.cs.lth.se:8080/maple">
   <Line n="1">
     <Input><![CDATA[f:=(xmin,x)->xmin<x;]]></Input>
     <Output><![CDATA[(xmin, x) -> xmin < x]]></Output>
   </Line>   <Line n="2">
     <Input><![CDATA[CodeGeneration:-Java(f,output=string);]]></Input>
     <Output><![CDATA["class CodeGenerationClass {\n public static boolean f (double xmin, double x)\n {\n return(xmin < x);\n }\n}\n"]]></Output>
   </Line>
</Worksheet>



 

Subversion repository

The code is available as an Eclipse project (Helios, JavaEE):
http://svn.cs.lth.se/svn/robot-cs/trunk/maple/vm21/maple

Dependencies:

  • Maple14
  • Java 1.6
  • Tomcat 7