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

log

log

The log function in XQuery returns the natural logarithm of the argument.

Syntax

math:log(arg)
The following table describes the argument for this command:
Argument
Required/Optional
Description
arg
Required
The positive numeric value to compute the natural logarithm of.

Return Value

  • Returns the natural logarithm (base ( e )) of the input value.
  • Returns an empty sequence if the input is an empty sequence.
  • Usually returns an error or empty if input is less than or equal to zero, since logarithm is undefined for those.

Examples

The following table lists some sample values and return values:
SAMPLE FUNCTION
OUTPUT
math:log(1)
0
math:log(math:e())
1
math:log(10)
2.302585092994046
math:log(-1)
Error or empty sequence
math:log(())
()

Additional information

  • The function argument must be a positive numeric value.
  • Passing zero, negative numbers, or empty sequences will result in an error or empty sequence.
  • Returns a numeric value representing the natural logarithm.

0 COMMENTS

We’d like to hear from you!