1. Главная
  2. Функции XPath
  3. acos()

acos XPath

Returns the arc cosine of the argument, the result being in the range zero to +? radians.

Синтаксис

XPath 3.0

math:acos($arg as xs:double?) as xs:double?

Описание и примеры

Примеры

The expression math:acos(()) returns ().
The expression math:acos(0) returns 1.5707963267948966e0 (approximately).
The expression math:acos(-0.0e0) returns 1.5707963267948966e0 (approximately).
The expression math:acos(1.0e0) returns 0.0e0.
The expression math:acos(-1.0e0) returns 3.141592653589793e0 (approximately).
The expression math:acos(2.0e0) returns xs:double('NaN').
The expression math:acos(xs:double('NaN')) returns xs:double('NaN').
The expression math:acos(xs:double('INF')) returns xs:double('NaN').
The expression math:acos(xs:double('-INF')) returns xs:double('NaN')