Skip to main content

Module math

Module math 

Source
Expand description

EXSLT math family — https://exslt.org/math/

All functions live in the http://exslt.org/math namespace. The dispatcher returns None for names it doesn’t recognise so the XPath engine can fall through to other tables.

Coverage:

  • min, max, highest, lowest — nodeset reductions
  • abs, sqrt, exp, log, power — scalar
  • sin, cos, tan, asin, acos, atan, atan2 — scalar
  • constant — π / e / etc. (lookup by name)
  • random — uniform [0, 1) per call

Scalar functions take/return Value::Number. Nodeset reductions coerce each node’s string-value to a number; non-numeric values propagate NaN through the result (matching libexslt).

Functions§

dispatch