Exponential: exp

Syntax

exp ( op )

Input parameters

op

the operand

Examples of valid syntaxes

exp ( DS_1 )
exp ( 5 )

Semantics for scalar operations

The operator exp returns e (base of the natural logarithm) raised to the op-th power. For example:

exp ( 5 ) gives 148.41315...
exp ( 1 ) gives 2.71828... (the number e)
exp ( 0 ) gives 1.0
exp ( -1 ) gives 0.36787... (the number 1/e)

Input parameters type

op

dataset { measure<number> _+ }
| component<number>
| number

Result type

result

dataset { measure<number[value > 0]> _+ }
| component<number [value > 0]>
| number[value > 0]

Additional Constraints

None.

Behavior

The operator has the behaviour of the “Operators applicable on one Scalar Value or Data Set or Data Set Component” (see the section “Typical behaviours of the ML Operators”).

Examples

Given the operand dataset DS_1:

Input DS_1 (see structure)

Id_1

Id_2

Me_1

Me_2

10

A

5

0.7545

10

B

8

13.45

11

A

2

1.87

Example 1

DS_r := exp(DS_1);

results in (see structure):

DS_r

Id_1

Id_2

Me_1

Me_2

10

A

148.413

2.126547

10

B

2980.95

693842.3

11

A

7.38905

6.488296

Example 2

DS_r := DS_1 [ calc Me_1 := exp ( Me_1 ) ];

results in (see structure):

DS_r

Id_1

Id_2

Me_1

Me_2

10

A

148.4131591025766

0.7545

10

B

2980.9579870417283

13.45

11

A

7.38905609893065

1.87