Math module

The functions in the Math module.

The Math module includes the functions in the following table.
Table 1. Supported functions for the EXSLT Functions module.
Name Element or function Supported in XSLT Supported in XQuery
math:abs() Function Yes Yes
math:acos() Function Yes Yes
math:asin() Function Yes Yes
math:atan() Function Yes Yes
math:atan2() Function Yes Yes
math:constant Function Yes Yes
math:cos() Function Yes Yes
math:exp() Function Yes Yes
math:highest() Function Yes No
math:log() Function Yes Yes
math:lowest() Function Yes No
math:max() Function Yes No
math:min() Function Yes No
math:power() Function Yes Yes
math:random() Function Yes Yes
math:sin() Function Yes Yes
math:sqrt() Function Yes Yes
math:tan() Function Yes Yes
The supported extension functions require the following namespace declarations.
  • XSLT
    xmlns:math="http://exslt.org/math"
  • XQuery
    declare namespace math="http://exslt.org/math";