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

cos

cos

The cos function in XQuery returns the cosine of a numeric input value, where the input represents an angle expressed in radians.

Syntax

math:cos(arg)
The following table describes the argument for this command:
Argument
Required/Optional
Description
arg
Required
The angle in radians to calculate the cosine of. It can be any numeric type.

Return Value

  • Returns the cosine of the input angle
    $arg
    as a numeric value.
  • Returns an empty sequence if the input is an empty sequence.

Examples

The following table lists some sample values and return values:
SAMPLE FUNCTION
OUTPUT
math:cos(0)
1
math:cos(math:pi())
-1
math:cos(())
()

Additional information

  • The input value must be in radians.
  • The function handles empty sequences by returning an empty sequence.

0 COMMENTS

We’d like to hear from you!