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

sin

sin

The sin function in XQuery returns the sine of a numeric input angle, where the angle is given in radians.

Syntax

math:sin(arg)
The following table describes the argument for this command:
Argument
Required/Optional
Description
arg
Required
The angle in radians for which to compute the sine.

Return Value

  • Returns the sine of the input angle 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:sin(0)
0
math:sin(math:pi() div 2)
1
math:sin(math:pi())
1.2246467991473532E-16
math:sin(())
()

Additional information

  • The input angle must be in radians.
  • The function handles empty input gracefully by returning an empty sequence.
  • The return type matches the numeric type of the input argument or is a compatible numeric type.

0 COMMENTS

We’d like to hear from you!