com.icl.saxon.exslt

Class Math

public abstract class Math extends Object

This class implements extension functions in the http://exslt.org/math namespace.

Method Summary
static doubleabs(double x)
Get the absolute value of a numeric value (SStL)
static doubleacos(double x)
Get the arccosine of a numeric value (SStL)
static doubleasin(double x)
Get the arcsine of a numeric value (SStL)
static doubleatan(double x)
Get the arctangent of a numeric value (SStL)
static doubleatan2(double x, double y)
Converts rectangular coordinates to polar (SStL)
static doubleconstant(String name, double precision)
Get a named constant to a given precision (SStL)
static doublecos(double x)
Get the cosine of a numeric value (SStL)
static doubleexp(double x)
Get the exponential of a numeric value (SStL)
static NodeSetValuehighest(Context c, NodeEnumeration nsv)
Get the nodes with maximum numeric value of the string-value of each of a set of nodes
static doublelog(double x)
Get the logarithm of a numeric value (SStL)
static NodeSetValuelowest(Context c, NodeEnumeration nsv)
Get the node with minimum numeric value of the string-value of each of a set of nodes
static doublemax(NodeEnumeration nsv)
Get the maximum numeric value of the string-value of each of a set of nodes
static doublemin(NodeEnumeration nsv)
Get the minimum numeric value of the string-value of each of a set of nodes
static doublepower(double x, double y)
Get the power of two numeric values (SStL)
static doublerandom()
Get a random numeric value (SStL)
static doublesin(double x)
Get the sine of a numeric value (SStL)
static doublesqrt(double x)
Get the square root of a numeric value (SStL)
static doubletan(double x)
Get the tangent of a numeric value (SStL)

Method Detail

abs

public static double abs(double x)
Get the absolute value of a numeric value (SStL)

acos

public static double acos(double x)
Get the arccosine of a numeric value (SStL)

asin

public static double asin(double x)
Get the arcsine of a numeric value (SStL)

atan

public static double atan(double x)
Get the arctangent of a numeric value (SStL)

atan2

public static double atan2(double x, double y)
Converts rectangular coordinates to polar (SStL)

constant

public static double constant(String name, double precision)
Get a named constant to a given precision (SStL)

cos

public static double cos(double x)
Get the cosine of a numeric value (SStL)

exp

public static double exp(double x)
Get the exponential of a numeric value (SStL)

highest

public static NodeSetValue highest(Context c, NodeEnumeration nsv)
Get the nodes with maximum numeric value of the string-value of each of a set of nodes

log

public static double log(double x)
Get the logarithm of a numeric value (SStL)

lowest

public static NodeSetValue lowest(Context c, NodeEnumeration nsv)
Get the node with minimum numeric value of the string-value of each of a set of nodes

max

public static double max(NodeEnumeration nsv)
Get the maximum numeric value of the string-value of each of a set of nodes

min

public static double min(NodeEnumeration nsv)
Get the minimum numeric value of the string-value of each of a set of nodes

power

public static double power(double x, double y)
Get the power of two numeric values (SStL)

random

public static double random()
Get a random numeric value (SStL)

sin

public static double sin(double x)
Get the sine of a numeric value (SStL)

sqrt

public static double sqrt(double x)
Get the square root of a numeric value (SStL)

tan

public static double tan(double x)
Get the tangent of a numeric value (SStL)