Tag library name: polyparser-taglib


Index of Tags and Functions.
Functions
  1. dmptostr.
  2. expand.
  3. isDMP.
  4. isUnivPolynomial.
  5. modn.
  6. toAlgExpr.
  7. toDMP.
  8. toUnivPolynomial.



Authors:
NameInstitutione-mailRole
E. Reinaldo Barreiro Technical University of Eindhoven (TU/e) info@mathdox.org Main author



Description:

This tag library allows to parse polynomials into OpenMath objects.




Download and Install:

Download:

The whole tag library project is available for dowloading, as tar.gz or as a zip file, here .

General INSTALL information:

This tag library is designed to be used in JSP pages compliant with the JSP 2.0 specification.

To get this tag library working you will have to copy the jar files

Jar fileDownloadDescription
om-lib.jardownloadROML library
expr-parser.jardownloadCan parse algebraic expressions into OpenMath algbraic expressions
antlr-2_7_0.jardownloadNeeded for parsing.
polyparser-taglib.jardownloadThe tag library jar file.

to the WEB-INF/lib/ directory on your web application.

NOTE: We advise you to use the versions of additional jar files comming with the tag library and not to download them directly from other of our related projects. By doing so, you may create imcompatibilities: though we will do our best to make sure a tag library is using the latest version of a jar file.

You will also need to copy the tld file polyparser-taglib.tld to somewhere in the WEB-INF/ directory, for instance to WEB-INF/ itselft, and add to the web.xml file, in the part corresponding to the tag libraries, the following lines:

<taglib>
    <taglib-uri>URI identifying your tag lib</taglib-uri>
    <taglib-location>/WEB-INF/polyparser-taglib.tld</taglib-location>

</taglib>
                            

For more information on how to modify the web.xml file peruse the documentation coming with your WEB server/container. For information on how to use tag extensions on your own JSP pages consult the JSP 2.0 specification.

Tag specific INSTALL information:

None




Functions


1- dmptostr (function).
Description:

Produces a string representation of a DMP.

Function Class:

nl.tue.win.riaca.taglib.polyparser.PolyParserFunctions

Function Signature:

java.lang.String dmpToStr( java.lang.String )



Examples:
Snippet 1:
        
            <c:out value="polyparser:dpmtostr(param.a)"/>            
        





2- expand (function).
Description:

Expands and simplifies an Algebraic Expression.

Function Class:

nl.tue.win.riaca.taglib.polyparser.PolyParserFunctions

Function Signature:

java.lang.String expand( java.lang.String )



Examples:
Snippet 1:

        
            <c:if test="${not empty param.a}">
                <c:out value="polyparser:expand(param.a)"/>
            </if>
        





3- isDMP (function).
Description:

Tests if a string is a Multivariate Polynomial

Function Class:

nl.tue.win.riaca.taglib.polyparser.PolyParserFunctions

Function Signature:

java.lang.Boolean isMultPolynomial( java.lang.String )



Examples:
Snippet 1:

        
            <c:if test="${polyparser:isDMP(param.a)}">
                <c:out value="polyparser:toDMP(param.a)"/>
            </if>
        





4- isUnivPolynomial (function).
Description:

Tests if a string is can be parsed into an Univariate Polynomial. We assume the polynomial is written as aN*x^N+....+a1*x+a0 where the ai are rational numbers.

Function Class:

nl.tue.win.riaca.taglib.polyparser.PolyParserFunctions

Function Signature:

java.lang.Boolean isUnivPolynomial( java.lang.String )



Examples:
Snippet 1:

        
            <c:if test="${polyparser:isUnivPolynomial(param.a)}">
                <!-- do something with the (string) integer in a -->
            </if>
        





5- modn (function).
Description:

Produces the mod N object.

Function Class:

nl.tue.win.riaca.taglib.polyparser.PolyParserFunctions

Function Signature:

java.lang.String modN( java.lang.String, java.lang.Integer )



Examples:
Snippet 1:

        
            <c:out value="polyparser:modN(param.a, '5' )"/>            
        





6- toAlgExpr (function).
Description:

Tries to build a Distributed Multivariate Polynomial (polyd.DMP).

Function Class:

nl.tue.win.riaca.taglib.polyparser.PolyParserFunctions

Function Signature:

java.lang.String toAlgExpr( java.lang.String )



Examples:
Snippet 1:
        
            <c:out value="polyparser:toAlgExpr(param.a)"/>            
        





7- toDMP (function).
Description:

Tries to build a Distributed Multivariate Polynomial (polyd.DMP).

Function Class:

nl.tue.win.riaca.taglib.polyparser.PolyParserFunctions

Function Signature:

java.lang.String toDMP( java.lang.String )



Examples:
Snippet 1:

        
            <c:if test="${polyparser:isMultPolynomial(param.a)}">
                <c:out value="polyparser:toDMP(param.a)"/>
            </if>
        





8- toUnivPolynomial (function).
Description:

Tries to build a Univariate Polynomial

Function Class:

nl.tue.win.riaca.taglib.polyparser.PolyParserFunctions

Function Signature:

java.lang.String toUnivPolynomial( java.lang.String )



Examples:
Snippet 1:

        
            <c:if test="${polyparser:isUnivPolynomial(param.a)}">
                <c:out value="polyparser:toUnivPolynomial(param.a)"/>
            </if>