MENU
Math Functions
Math functions provide the constant pi and common exponential, logarithmic, power, root, and trigonometric operations. They live in the http://www.w3.org/2005/xpath-functions/math namespace, conventionally bound to the math: prefix. See also Numeric Functions for rounding and formatting.| 2*math:pi() | 6.283185307179586e0 |
| math:exp(1) | 2.7182818284590455e0 |
| math:exp10(1) | 1.0e1 |
| math:log(math:exp(1)) | 1.0e0 |
| math:log10(1.0e3) | 3.0e0 |
| math:pow(2,3) | 8.0e0 |
| math:sqrt(1.0e6) | 1.0e3 |
| math:sin(math:pi()) | 0.0e0 |
| math:cos(math:pi()) | -1.0e0 |
| math:tan(math:pi()) | 0.0e0 |
| math:asin(1.0e0) | 1.5707963267948966e0 |
| math:acos(1.0e0) | 0.0e0 |
| math:atan(1.0e0) | 0.7853981633974483e0 |
| math:atan2(-0.0e0,+1) | -0.0e0 |
ch03-math-functions.xpath.txt:
math:sqrt(1.0e6)1.0e3