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

exp

exp

The exp function in XQuery calculates the exponential of a given numeric input, returning
e^{x}
, where
e
is Euler’s number that is approximately 2.71828, and
x
is the input argument.

Syntax

math:exp(arg)
The following table describes the argument for this command:
Argument
Required/Optional
Description
arg
Required
The exponent value used to calculate ( e^{x} ). Accepts any numeric type (integer, decimal, float, double).

Return Value

  • Returns the exponential value ( e^{x} ) as a numeric type.
  • 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:exp(0)
1
math:exp(1)
2.718281828459045
math:exp(2)
7.38905609893065
math:exp(-1)
0.367879441171442
math:exp(())
()

Additional information

  • The input can be any numeric value, such as positive, negative, or zero.
  • The function returns a numeric value of the exponential calculation.
  • Gracefully handles empty input by returning an empty sequence.

0 COMMENTS

We’d like to hear from you!