<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<!--NewPage--> | |
<HTML> | |
<HEAD> | |
<!-- Generated by javadoc (build 1.5.0_18) on Sun Apr 01 21:18:05 PDT 2012 --> | |
<TITLE> | |
ExsltMath | |
</TITLE> | |
<META NAME="keywords" CONTENT="org.apache.xalan.lib.ExsltMath class"> | |
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> | |
<SCRIPT type="text/javascript"> | |
function windowTitle() | |
{ | |
parent.document.title="ExsltMath"; | |
} | |
</SCRIPT> | |
<NOSCRIPT> | |
</NOSCRIPT> | |
</HEAD> | |
<BODY BGCOLOR="white" onload="windowTitle();"> | |
<!-- ========= START OF TOP NAVBAR ======= --> | |
<A NAME="navbar_top"><!-- --></A> | |
<A HREF="#skip-navbar_top" title="Skip navigation links"></A> | |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
<TR> | |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
<A NAME="navbar_top_firstrow"><!-- --></A> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
<TR ALIGN="center" VALIGN="top"> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ExsltMath.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
</TR> | |
</TABLE> | |
</TD> | |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
</EM> | |
</TD> | |
</TR> | |
<TR> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../org/apache/xalan/lib/ExsltDynamic.html" title="class in org.apache.xalan.lib"><B>PREV CLASS</B></A> | |
<A HREF="../../../../org/apache/xalan/lib/ExsltSets.html" title="class in org.apache.xalan.lib"><B>NEXT CLASS</B></A></FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../index.html?org/apache/xalan/lib/ExsltMath.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="ExsltMath.html" target="_top"><B>NO FRAMES</B></A> | |
<SCRIPT type="text/javascript"> | |
<!-- | |
if(window==top) { | |
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); | |
} | |
//--> | |
</SCRIPT> | |
<NOSCRIPT> | |
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> | |
</NOSCRIPT> | |
</FONT></TD> | |
</TR> | |
<TR> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
</TR> | |
</TABLE> | |
<A NAME="skip-navbar_top"></A> | |
<!-- ========= END OF TOP NAVBAR ========= --> | |
<HR> | |
<!-- ======== START OF CLASS DATA ======== --> | |
<H2> | |
<FONT SIZE="-1"> | |
org.apache.xalan.lib</FONT> | |
<BR> | |
Class ExsltMath</H2> | |
<PRE> | |
java.lang.Object | |
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../org/apache/xalan/lib/ExsltBase.html" title="class in org.apache.xalan.lib">org.apache.xalan.lib.ExsltBase</A> | |
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.xalan.lib.ExsltMath</B> | |
</PRE> | |
<HR> | |
<DL> | |
<DT><PRE>public class <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.42"><B>ExsltMath</B></A><DT>extends <A HREF="../../../../org/apache/xalan/lib/ExsltBase.html" title="class in org.apache.xalan.lib">ExsltBase</A></DL> | |
</PRE> | |
<P> | |
This class contains EXSLT math extension functions. | |
It is accessed by specifying a namespace URI as follows: | |
<pre> | |
xmlns:math="http://exslt.org/math" | |
</pre> | |
The documentation for each function has been copied from the relevant | |
EXSLT Implementer page. | |
<P> | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><a href="http://www.exslt.org/">EXSLT</a></DL> | |
<HR> | |
<P> | |
<!-- =========== FIELD SUMMARY =========== --> | |
<A NAME="field_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Field Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>private static java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#E">E</A></B></CODE> | |
<BR> | |
</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>private static java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#LN10">LN10</A></B></CODE> | |
<BR> | |
</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>private static java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#LN2">LN2</A></B></CODE> | |
<BR> | |
</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>private static java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#LOG2E">LOG2E</A></B></CODE> | |
<BR> | |
</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>private static java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#PI">PI</A></B></CODE> | |
<BR> | |
</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>private static java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#SQRRT2">SQRRT2</A></B></CODE> | |
<BR> | |
</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>private static java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#SQRT1_2">SQRT1_2</A></B></CODE> | |
<BR> | |
</TD> | |
</TR> | |
</TABLE> | |
| |
<!-- ======== CONSTRUCTOR SUMMARY ======== --> | |
<A NAME="constructor_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Constructor Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#ExsltMath()">ExsltMath</A></B>()</CODE> | |
<BR> | |
</TD> | |
</TR> | |
</TABLE> | |
| |
<!-- ========== METHOD SUMMARY =========== --> | |
<A NAME="method_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Method Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static double</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#abs(double)">abs</A></B>(double num)</CODE> | |
<BR> | |
The math:abs function returns the absolute value of a number.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static double</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#acos(double)">acos</A></B>(double num)</CODE> | |
<BR> | |
The math:acos function returns the arccosine value of a number.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static double</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#asin(double)">asin</A></B>(double num)</CODE> | |
<BR> | |
The math:asin function returns the arcsine value of a number.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static double</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#atan(double)">atan</A></B>(double num)</CODE> | |
<BR> | |
The math:atan function returns the arctangent value of a number.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static double</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#atan2(double, double)">atan2</A></B>(double num1, | |
double num2)</CODE> | |
<BR> | |
The math:atan2 function returns the angle ( in radians ) from the X axis to a point (y,x).</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static double</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#constant(java.lang.String, double)">constant</A></B>(java.lang.String name, | |
double precision)</CODE> | |
<BR> | |
The math:constant function returns the specified constant to a set precision.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static double</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#cos(double)">cos</A></B>(double num)</CODE> | |
<BR> | |
The math:cos function returns cosine of the passed argument.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static double</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#exp(double)">exp</A></B>(double num)</CODE> | |
<BR> | |
The math:exp function returns e (the base of natural logarithms) raised to a power.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static org.w3c.dom.NodeList</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#highest(org.w3c.dom.NodeList)">highest</A></B>(org.w3c.dom.NodeList nl)</CODE> | |
<BR> | |
The math:highest function returns the nodes in the node set whose value is the maximum | |
value for the node set.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static double</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#log(double)">log</A></B>(double num)</CODE> | |
<BR> | |
The math:log function returns the natural logarithm of a number.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static org.w3c.dom.NodeList</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#lowest(org.w3c.dom.NodeList)">lowest</A></B>(org.w3c.dom.NodeList nl)</CODE> | |
<BR> | |
The math:lowest function returns the nodes in the node set whose value is the minimum value | |
for the node set.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static double</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#max(org.w3c.dom.NodeList)">max</A></B>(org.w3c.dom.NodeList nl)</CODE> | |
<BR> | |
The math:max function returns the maximum value of the nodes passed as the argument.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static double</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#min(org.w3c.dom.NodeList)">min</A></B>(org.w3c.dom.NodeList nl)</CODE> | |
<BR> | |
The math:min function returns the minimum value of the nodes passed as the argument.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static double</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#power(double, double)">power</A></B>(double num1, | |
double num2)</CODE> | |
<BR> | |
The math:power function returns the value of a base expression taken to a specified power.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static double</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#random()">random</A></B>()</CODE> | |
<BR> | |
The math:random function returns a random number from 0 to 1.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static double</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#sin(double)">sin</A></B>(double num)</CODE> | |
<BR> | |
The math:sin function returns the sine of the number.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static double</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#sqrt(double)">sqrt</A></B>(double num)</CODE> | |
<BR> | |
The math:sqrt function returns the square root of a number.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static double</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltMath.html#tan(double)">tan</A></B>(double num)</CODE> | |
<BR> | |
The math:tan function returns the tangent of the number passed as an argument.</TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_org.apache.xalan.lib.ExsltBase"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Methods inherited from class org.apache.xalan.lib.<A HREF="../../../../org/apache/xalan/lib/ExsltBase.html" title="class in org.apache.xalan.lib">ExsltBase</A></B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><A HREF="../../../../org/apache/xalan/lib/ExsltBase.html#toNumber(org.w3c.dom.Node)">toNumber</A>, <A HREF="../../../../org/apache/xalan/lib/ExsltBase.html#toString(org.w3c.dom.Node)">toString</A></CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> | |
</TR> | |
</TABLE> | |
| |
<P> | |
<!-- ============ FIELD DETAIL =========== --> | |
<A NAME="field_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Field Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="PI"><!-- --></A><H3> | |
PI</H3> | |
<PRE> | |
private static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.45"><B>PI</B></A></PRE> | |
<DL> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="E"><!-- --></A><H3> | |
E</H3> | |
<PRE> | |
private static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.46"><B>E</B></A></PRE> | |
<DL> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="SQRRT2"><!-- --></A><H3> | |
SQRRT2</H3> | |
<PRE> | |
private static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.47"><B>SQRRT2</B></A></PRE> | |
<DL> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="LN2"><!-- --></A><H3> | |
LN2</H3> | |
<PRE> | |
private static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.48"><B>LN2</B></A></PRE> | |
<DL> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="LN10"><!-- --></A><H3> | |
LN10</H3> | |
<PRE> | |
private static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.49"><B>LN10</B></A></PRE> | |
<DL> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="LOG2E"><!-- --></A><H3> | |
LOG2E</H3> | |
<PRE> | |
private static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.50"><B>LOG2E</B></A></PRE> | |
<DL> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="SQRT1_2"><!-- --></A><H3> | |
SQRT1_2</H3> | |
<PRE> | |
private static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.51"><B>SQRT1_2</B></A></PRE> | |
<DL> | |
<DL> | |
</DL> | |
</DL> | |
<!-- ========= CONSTRUCTOR DETAIL ======== --> | |
<A NAME="constructor_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Constructor Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="ExsltMath()"><!-- --></A><H3> | |
ExsltMath</H3> | |
<PRE> | |
public <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.42"><B>ExsltMath</B></A>()</PRE> | |
<DL> | |
</DL> | |
<!-- ============ METHOD DETAIL ========== --> | |
<A NAME="method_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Method Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="max(org.w3c.dom.NodeList)"><!-- --></A><H3> | |
max</H3> | |
<PRE> | |
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.69"><B>max</B></A>(org.w3c.dom.NodeList nl)</PRE> | |
<DL> | |
<DD>The math:max function returns the maximum value of the nodes passed as the argument. | |
The maximum value is defined as follows. The node set passed as an argument is sorted | |
in descending order as it would be by xsl:sort with a data type of number. The maximum | |
is the result of converting the string value of the first node in this sorted list to | |
a number using the number function. | |
<p> | |
If the node set is empty, or if the result of converting the string values of any of the | |
nodes to a number is NaN, then NaN is returned. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>nl</CODE> - The NodeList for the node-set to be evaluated. | |
<DT><B>Returns:</B><DD>the maximum value found, NaN if any node cannot be converted to a number.<DT><B>See Also:</B><DD><a href="http://www.exslt.org/">EXSLT</a></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="min(org.w3c.dom.NodeList)"><!-- --></A><H3> | |
min</H3> | |
<PRE> | |
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.104"><B>min</B></A>(org.w3c.dom.NodeList nl)</PRE> | |
<DL> | |
<DD>The math:min function returns the minimum value of the nodes passed as the argument. | |
The minimum value is defined as follows. The node set passed as an argument is sorted | |
in ascending order as it would be by xsl:sort with a data type of number. The minimum | |
is the result of converting the string value of the first node in this sorted list to | |
a number using the number function. | |
<p> | |
If the node set is empty, or if the result of converting the string values of any of | |
the nodes to a number is NaN, then NaN is returned. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>nl</CODE> - The NodeList for the node-set to be evaluated. | |
<DT><B>Returns:</B><DD>the minimum value found, NaN if any node cannot be converted to a number.<DT><B>See Also:</B><DD><a href="http://www.exslt.org/">EXSLT</a></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="highest(org.w3c.dom.NodeList)"><!-- --></A><H3> | |
highest</H3> | |
<PRE> | |
public static org.w3c.dom.NodeList <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.140"><B>highest</B></A>(org.w3c.dom.NodeList nl)</PRE> | |
<DL> | |
<DD>The math:highest function returns the nodes in the node set whose value is the maximum | |
value for the node set. The maximum value for the node set is the same as the value as | |
calculated by math:max. A node has this maximum value if the result of converting its | |
string value to a number as if by the number function is equal to the maximum value, | |
where the equality comparison is defined as a numerical comparison using the = operator. | |
<p> | |
If any of the nodes in the node set has a non-numeric value, the math:max function will | |
return NaN. The definition numeric comparisons entails that NaN != NaN. Therefore if any | |
of the nodes in the node set has a non-numeric value, math:highest will return an empty | |
node set. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>nl</CODE> - The NodeList for the node-set to be evaluated. | |
<DT><B>Returns:</B><DD>node-set with nodes containing the maximum value found, an empty node-set | |
if any node cannot be converted to a number.</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="lowest(org.w3c.dom.NodeList)"><!-- --></A><H3> | |
lowest</H3> | |
<PRE> | |
public static org.w3c.dom.NodeList <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.177"><B>lowest</B></A>(org.w3c.dom.NodeList nl)</PRE> | |
<DL> | |
<DD>The math:lowest function returns the nodes in the node set whose value is the minimum value | |
for the node set. The minimum value for the node set is the same as the value as calculated | |
by math:min. A node has this minimum value if the result of converting its string value to | |
a number as if by the number function is equal to the minimum value, where the equality | |
comparison is defined as a numerical comparison using the = operator. | |
<p> | |
If any of the nodes in the node set has a non-numeric value, the math:min function will return | |
NaN. The definition numeric comparisons entails that NaN != NaN. Therefore if any of the nodes | |
in the node set has a non-numeric value, math:lowest will return an empty node set. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>nl</CODE> - The NodeList for the node-set to be evaluated. | |
<DT><B>Returns:</B><DD>node-set with nodes containing the minimum value found, an empty node-set | |
if any node cannot be converted to a number.</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="abs(double)"><!-- --></A><H3> | |
abs</H3> | |
<PRE> | |
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.203"><B>abs</B></A>(double num)</PRE> | |
<DL> | |
<DD>The math:abs function returns the absolute value of a number. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>num</CODE> - A number | |
<DT><B>Returns:</B><DD>The absolute value of the number</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="acos(double)"><!-- --></A><H3> | |
acos</H3> | |
<PRE> | |
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.214"><B>acos</B></A>(double num)</PRE> | |
<DL> | |
<DD>The math:acos function returns the arccosine value of a number. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>num</CODE> - A number | |
<DT><B>Returns:</B><DD>The arccosine value of the number</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="asin(double)"><!-- --></A><H3> | |
asin</H3> | |
<PRE> | |
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.225"><B>asin</B></A>(double num)</PRE> | |
<DL> | |
<DD>The math:asin function returns the arcsine value of a number. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>num</CODE> - A number | |
<DT><B>Returns:</B><DD>The arcsine value of the number</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="atan(double)"><!-- --></A><H3> | |
atan</H3> | |
<PRE> | |
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.236"><B>atan</B></A>(double num)</PRE> | |
<DL> | |
<DD>The math:atan function returns the arctangent value of a number. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>num</CODE> - A number | |
<DT><B>Returns:</B><DD>The arctangent value of the number</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="atan2(double, double)"><!-- --></A><H3> | |
atan2</H3> | |
<PRE> | |
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.248"><B>atan2</B></A>(double num1, | |
double num2)</PRE> | |
<DL> | |
<DD>The math:atan2 function returns the angle ( in radians ) from the X axis to a point (y,x). | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>num1</CODE> - The X axis value<DD><CODE>num2</CODE> - The Y axis value | |
<DT><B>Returns:</B><DD>The angle (in radians) from the X axis to a point (y,x)</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="cos(double)"><!-- --></A><H3> | |
cos</H3> | |
<PRE> | |
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.259"><B>cos</B></A>(double num)</PRE> | |
<DL> | |
<DD>The math:cos function returns cosine of the passed argument. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>num</CODE> - A number | |
<DT><B>Returns:</B><DD>The cosine value of the number</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="exp(double)"><!-- --></A><H3> | |
exp</H3> | |
<PRE> | |
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.270"><B>exp</B></A>(double num)</PRE> | |
<DL> | |
<DD>The math:exp function returns e (the base of natural logarithms) raised to a power. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>num</CODE> - A number | |
<DT><B>Returns:</B><DD>The value of e raised to the given power</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="log(double)"><!-- --></A><H3> | |
log</H3> | |
<PRE> | |
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.281"><B>log</B></A>(double num)</PRE> | |
<DL> | |
<DD>The math:log function returns the natural logarithm of a number. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>num</CODE> - A number | |
<DT><B>Returns:</B><DD>The natural logarithm of the number</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="power(double, double)"><!-- --></A><H3> | |
power</H3> | |
<PRE> | |
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.293"><B>power</B></A>(double num1, | |
double num2)</PRE> | |
<DL> | |
<DD>The math:power function returns the value of a base expression taken to a specified power. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>num1</CODE> - The base<DD><CODE>num2</CODE> - The power | |
<DT><B>Returns:</B><DD>The value of the base expression taken to the specified power</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="random()"><!-- --></A><H3> | |
random</H3> | |
<PRE> | |
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.303"><B>random</B></A>()</PRE> | |
<DL> | |
<DD>The math:random function returns a random number from 0 to 1. | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>A random double from 0 to 1</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="sin(double)"><!-- --></A><H3> | |
sin</H3> | |
<PRE> | |
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.314"><B>sin</B></A>(double num)</PRE> | |
<DL> | |
<DD>The math:sin function returns the sine of the number. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>num</CODE> - A number | |
<DT><B>Returns:</B><DD>The sine value of the number</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="sqrt(double)"><!-- --></A><H3> | |
sqrt</H3> | |
<PRE> | |
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.325"><B>sqrt</B></A>(double num)</PRE> | |
<DL> | |
<DD>The math:sqrt function returns the square root of a number. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>num</CODE> - A number | |
<DT><B>Returns:</B><DD>The square root of the number</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="tan(double)"><!-- --></A><H3> | |
tan</H3> | |
<PRE> | |
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.336"><B>tan</B></A>(double num)</PRE> | |
<DL> | |
<DD>The math:tan function returns the tangent of the number passed as an argument. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>num</CODE> - A number | |
<DT><B>Returns:</B><DD>The tangent value of the number</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="constant(java.lang.String, double)"><!-- --></A><H3> | |
constant</H3> | |
<PRE> | |
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltMath.html#line.357"><B>constant</B></A>(java.lang.String name, | |
double precision)</PRE> | |
<DL> | |
<DD>The math:constant function returns the specified constant to a set precision. | |
The possible constants are: | |
<pre> | |
PI | |
E | |
SQRRT2 | |
LN2 | |
LN10 | |
LOG2E | |
SQRT1_2 | |
</pre> | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the constant<DD><CODE>precision</CODE> - The precision | |
<DT><B>Returns:</B><DD>The value of the specified constant to the given precision</DL> | |
</DD> | |
</DL> | |
<!-- ========= END OF CLASS DATA ========= --> | |
<HR> | |
<!-- ======= START OF BOTTOM NAVBAR ====== --> | |
<A NAME="navbar_bottom"><!-- --></A> | |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> | |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
<TR> | |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
<A NAME="navbar_bottom_firstrow"><!-- --></A> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
<TR ALIGN="center" VALIGN="top"> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ExsltMath.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
</TR> | |
</TABLE> | |
</TD> | |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
</EM> | |
</TD> | |
</TR> | |
<TR> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../org/apache/xalan/lib/ExsltDynamic.html" title="class in org.apache.xalan.lib"><B>PREV CLASS</B></A> | |
<A HREF="../../../../org/apache/xalan/lib/ExsltSets.html" title="class in org.apache.xalan.lib"><B>NEXT CLASS</B></A></FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../index.html?org/apache/xalan/lib/ExsltMath.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="ExsltMath.html" target="_top"><B>NO FRAMES</B></A> | |
<SCRIPT type="text/javascript"> | |
<!-- | |
if(window==top) { | |
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); | |
} | |
//--> | |
</SCRIPT> | |
<NOSCRIPT> | |
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> | |
</NOSCRIPT> | |
</FONT></TD> | |
</TR> | |
<TR> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
</TR> | |
</TABLE> | |
<A NAME="skip-navbar_bottom"></A> | |
<!-- ======== END OF BOTTOM NAVBAR ======= --> | |
<HR> | |
</BODY> | |
</HTML> |