Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Understanding Data Types and Field Properties
  3. Designing Processes
  4. Using and Displaying Data
  5. Designing Guides
  6. Designing Process Objects
  7. Designing Service Connectors
  8. Using App Connections
  9. System Services, Listeners and Connectors
  10. Designing Human Tasks

Design

Design

tan

tan

The tan function in XQuery returns the tangent of a given numeric value interpreted as an angle in radians.

Syntax

math:tan(arg)
The following table describes the argument for this command:
Argument
Required/Optional
Description
arg
Optional
The input angle in radians.

Return Value

  • Returns the tangent value of the input angle in radians as an
    xs:double
    .
  • Returns
    true
    if the
    xml:lang
    attribute of the node or its nearest ancestor matches the
    $testlang
    value.
  • Returns
    false
    if there is no match or if
    xml:lang
    is absent.
  • Returns an empty sequence if the input is an empty sequence or invalid.

Examples

The following table lists some sample values and return values:
SAMPLE FUNCTION
OUTPUT
math:tan(0)
0
math:tan(1)
Approximately
1.55740772465490
math:tan(3.1415926535 div 4)
0.9999999999999999
math:tan(())
()

Additional information

  • The input angle is always in
    radians
    , not degrees.
  • To use degrees, you can convert degrees to radians as shown in the following expression:
    radians := degrees * (fn:pi() div 180)
  • The
    fn:tan
    function is useful in mathematical, geometric, and trigonometric calculations written in XQuery expressions.

0 COMMENTS

We’d like to hear from you!