1 Introduction
2 XQuery and XPath Math Functions
3 Normative References
4 Non-Normative References
This document describes the namespace
http://www.w3.org/2005/xpath-functions/math
defined by the
[XPath and XQuery Functions and Operators 3.0]
specification (April 2014 version).
This namespace is identified by the namespace prefix math:
,
which is not a predefined prefix.
For updated information, please refer to the latest version of the
[XPath and XQuery Functions and Operators 3.0] specification.
This document describes the names that are defined in this namespace at the time of publication. The W3C reserves the right to define additional names in this namespace in the future. [XPath and XQuery Functions and Operators 3.0] is the only specification that may amend this namespace.
This document contains a directory of links to related resources, using RDDL (as defined in [Resource Directory Description Language (RDDL)]).
It is GRDDL-enabled (as defined in [Gleaning Resource Descriptions from Dialects of Languages (GRDDL)]), that is to say that a GRDDL-compliant processor can extract useful RDF (as defined in [Resource Description Framework (RDF): Concepts and Abstract Syntax]) representations of the information contained herein.
This section lists all of the functions defined by the
[XPath and XQuery Functions and Operators 3.0] specification to be in the namespace reserved
for certain mathematical functions.
Each function is uniquely identified with a URI of the form:
“http://www.w3.org/2005/xpath-functions/math#
name”
where name is the name of a function, such as
“sqrt”: http://www.w3.org/2005/xpath-functions/math#sqrt
.
The normative definitions of these functions are in the [XPath and XQuery Functions and Operators 3.0] specification. For convenience, a very brief, non-normative summary of each function is provided. For details, follow the link on the “Summary:” introductory text below each function.
xs:double? acos(xs:double?)
Returns the arc cosine of the argument, the result being in the range zero to +π radians.
xs:double? asin(xs:double?)
Returns the arc sine of the argument, the result being in the range -π/2 to +π/2 radians.
xs:double? atan(xs:double?)
Returns the arc tangent of the argument, the result being in the range -π/2 to +π/2 radians.
xs:double atan2(xs:double, xs:double)
Returns the angle in radians subtended at the origin by the point on a plane with coordinates (x, y) and the positive x-axis, the result being in the range -π to +π.
xs:double? cos(xs:double?)
Returns the cosine of the argument, expressed in radians.
xs:double? exp(xs:double?)
Returns the value of ex.
xs:double? exp10(xs:double?)
Returns the value of 10
x.
xs:double? log(xs:double?)
Returns the natural logarithm of the argument.
xs:double? log10(xs:double?)
Returns the base-ten logarithm of the argument.
xs:double pi()
Returns an approximation to the mathematical constant π.
xs:double? pow(xs:double?, numeric)
Returns the result of raising the first argument to the power of the second.
xs:double? sin(xs:double?)
Returns the sine of the argument, expressed in radians.
xs:double? sqrt(xs:double?)
Returns the non-negative square root of the argument.
xs:double? tan(xs:double?)
Returns the tangent of the argument, expressed in radians.
These documents describe the names that are defined in this namespace at the time of publication. The W3C reserves the right to define additional names in this namespace in the future.
XPath and XQuery Functions and Operators 3.0 (08 April 2014 version)
Resource Directory Description Language (RDDL) (4 July 2007)
Gleaning Resource Descriptions from Dialects of Languages (GRDDL) (Recommendation of 11 September 2007)
Resource Description Framework (RDF): Concepts and Abstract Syntax (Recommendation of 10 February 2004)