# Zorba

The XQuery Processor

- Documentation
- Live Demo
- Modules
- Download
- Tools
- Blog
- Code

Collapse All Expand All

- All Modules
- All Functions
- www.w3.org
  - 2005
    - math (E)
    - xpath-functions (E)
- XDM
  - atomic
    - datetime (E)
    - math (E)
    - random (E)
    - string (E)
    - uri (E)
  - item
    - schema (E)
  - node
    - node (E)
    - node-position (E)
    - node-reference (E)
- store
  - collections
    - dynamic
      - ddl (E)
      - dml (E)
    - static
      - ddl (E)
      - dml (E)
    - w3c
      - dml
      - ddl
  - data structures
    - stack
    - unordered-map (E)
    - queue
  - documents
    - documents (E)
  - indexes
    - static
      - ddl (E)
      - dml (E)
  - integrity constraints
    - static
      - ddl (E)
      - dml (E)
- introspection
  - sctx (E)
- reflection
  - reflection (E)
- external
  - fetch (E)
  - http-client (E)
  - process (E)
  - system (E)
- xqdoc
  - xqdoc (E)
  - project_xqdoc
  - xqdoc2xhtml
    - xqdoc2xhtml
    - error
- data processing
  - data cleaning
    - character-based-string-similarity
    - consolidation
    - conversion
    - hybrid-string-similarity
    - normalization
    - phonetic-string-similarity
    - set-similarity
    - token-based-string-similarity
  - data converters
    - base64 (E)
    - json (E)
    - xml (E)
    - csv (E)
    - html (E)
- programming languages
  - xslt (E)
  - xquery
    - xqxq (E)
- excel
  - information
  - text
  - statistical-zorba
  - statistical
  - math-sumproduct
  - math
  - lookup
  - logical
  - engineering
  - datetime
- cryptography
  - hash (E)
  - hmac (E)
- geo
  - geo (E)
  - geoproj
- image
  - paint (E)
  - manipulation (E)
  - graphviz (E)
  - basic (E)
  - animation (E)
- OAuth
  - error
  - client
- expath.org
  - http-client
  - error
  - ns
    - file (E)
- www.functx.com
  - www.functx.com
- debugger
  - dbgp-message-handler
- error
  - errors
  - xqt-errors
  - errors
  - warnings
- utils
  - util jvm
    - util-jvm
- jsoniq.org
  - functions (E)
- www.zorba-xquery.com
  - modules
    - archive (E)
    - full-text (E)

# http://www.w3.org/2005/xpath-functions/math

Module Description
Before using any of the functions below please remember to import the module namespace:

    import module namespace math = "http://www.w3.org/2005/xpath-functions/math";

This module contains all the functions part of the W3C XPath and XQuery Functions and Operators 3.0 section "4.7 Trigonometric and exponential functions".

Author:

www.w3c.org

Module Resources

- the XQuery module can be found here.

Related Documentation

For more details please also see:

- http://www.w3.org/TR/xpath-functions-30/#trigonometry

Namespaces

math | http://www.w3.org/2005/xpath-functions/math

Function Summary

| `acos ( $arg as xs:double? ) as xs:double? .`
| `asin ( $arg as xs:double? ) as xs:double? .`
| `atan ( $arg as xs:double? ) as xs:double? .`
| `atan2 ( $y as xs:double, $x as xs:double ) as xs:double .`
| `cos ( $theta as xs:double? ) as xs:double? .`
| `exp ( $arg as xs:double? ) as xs:double? .`
| `exp10 ( $arg as xs:double? ) as xs:double? .`
| `log ( $arg as xs:double? ) as xs:double? .`
| `log10 ( $arg as xs:double? ) as xs:double? .`
| `pi ( ) as xs:double .`
| `pow ( $x as xs:double?, $y as numeric ) as xs:double? .`
| `sin ( $theta as xs:double? ) as xs:double? .`
| `sqrt ( $arg as xs:double? ) as xs:double? .`
| `tan ( $theta as xs:double? ) as xs:double? .`

Functions
acos

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

No description available.

See:

- for semantics please check math:acos

asin

    declare function math:asin (
                $arg as xs:double?
    ) as xs:double?

No description available.

See:

- for semantics please check math:asin

atan

    declare function math:atan (
                $arg as xs:double?
    ) as xs:double?

No description available.

See:

- for semantics please check math:atan

atan2

    declare function math:atan2 (
                $y as xs:double,
                $x as xs:double
    ) as xs:double

No description available.

See:

- for semantics please check math:atan2

cos

    declare function math:cos (
                $theta as xs:double?
    ) as xs:double?

No description available.

See:

- for semantics please check math:cos

exp

    declare function math:exp (
                $arg as xs:double?
    ) as xs:double?

No description available.

See:

- for semantics please check math:exp

exp10

    declare function math:exp10 (
                $arg as xs:double?
    ) as xs:double?

No description available.

See:

- for semantics please check math:exp10

log

    declare function math:log (
                $arg as xs:double?
    ) as xs:double?

No description available.

See:

- for semantics please check math:log

log10

    declare function math:log10 (
                $arg as xs:double?
    ) as xs:double?

No description available.

See:

- for semantics please check math:log10

pi

    declare function math:pi (

    ) as xs:double

No description available.

See:

- for semantics please check math:pi

pow

    declare function math:pow (
                $x as xs:double?,
                $y as numeric
    ) as xs:double?

No description available.

See:

- for semantics please check math:pow

sin

    declare function math:sin (
                $theta as xs:double?
    ) as xs:double?

No description available.

See:

- for semantics please check math:sin

sqrt

    declare function math:sqrt (
                $arg as xs:double?
    ) as xs:double?

No description available.

See:

- for semantics please check math:sqrt

tan

    declare function math:tan (
                $theta as xs:double?
    ) as xs:double?

No description available.

See:

- for semantics please check math:tan

blog comments powered by Disqus