Package com.icl.saxon.exslt
Class Math
java.lang.Object
com.icl.saxon.exslt.Math
This class implements extension functions in the
http://exslt.org/math namespace.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
abs
(double x) Get the absolute value of a numeric value (SStL)static double
acos
(double x) Get the arccosine of a numeric value (SStL)static double
asin
(double x) Get the arcsine of a numeric value (SStL)static double
atan
(double x) Get the arctangent of a numeric value (SStL)static double
atan2
(double x, double y) Converts rectangular coordinates to polar (SStL)static double
Get a named constant to a given precision (SStL)static double
cos
(double x) Get the cosine of a numeric value (SStL)static double
exp
(double x) Get the exponential of a numeric value (SStL)static NodeSetValue
highest
(Context c, NodeEnumeration nsv) Get the nodes with maximum numeric value of the string-value of each of a set of nodesstatic double
log
(double x) Get the logarithm of a numeric value (SStL)static NodeSetValue
lowest
(Context c, NodeEnumeration nsv) Get the node with minimum numeric value of the string-value of each of a set of nodesstatic double
max
(NodeEnumeration nsv) Get the maximum numeric value of the string-value of each of a set of nodesstatic double
min
(NodeEnumeration nsv) Get the minimum numeric value of the string-value of each of a set of nodesstatic double
power
(double x, double y) Get the power of two numeric values (SStL)static double
random()
Get a random numeric value (SStL)static double
sin
(double x) Get the sine of a numeric value (SStL)static double
sqrt
(double x) Get the square root of a numeric value (SStL)static double
tan
(double x) Get the tangent of a numeric value (SStL)
-
Constructor Details
-
Math
public Math()
-
-
Method Details
-
max
Get the maximum numeric value of the string-value of each of a set of nodes- Throws:
XPathException
-
min
Get the minimum numeric value of the string-value of each of a set of nodes- Throws:
XPathException
-
highest
Get the nodes with maximum numeric value of the string-value of each of a set of nodes- Throws:
XPathException
-
lowest
Get the node with minimum numeric value of the string-value of each of a set of nodes- Throws:
XPathException
-
abs
Get the absolute value of a numeric value (SStL)- Throws:
XPathException
-
sqrt
Get the square root of a numeric value (SStL)- Throws:
XPathException
-
power
Get the power of two numeric values (SStL)- Throws:
XPathException
-
constant
Get a named constant to a given precision (SStL)- Throws:
XPathException
-
log
Get the logarithm of a numeric value (SStL)- Throws:
XPathException
-
random
Get a random numeric value (SStL)- Throws:
XPathException
-
sin
Get the sine of a numeric value (SStL)- Throws:
XPathException
-
cos
Get the cosine of a numeric value (SStL)- Throws:
XPathException
-
tan
Get the tangent of a numeric value (SStL)- Throws:
XPathException
-
asin
Get the arcsine of a numeric value (SStL)- Throws:
XPathException
-
acos
Get the arccosine of a numeric value (SStL)- Throws:
XPathException
-
atan
Get the arctangent of a numeric value (SStL)- Throws:
XPathException
-
atan2
Converts rectangular coordinates to polar (SStL)- Throws:
XPathException
-
exp
Get the exponential of a numeric value (SStL)- Throws:
XPathException
-