Exponential Functions

Prev Next

Function Names

exp, 10p

Description

exp(x) calculates e ^ x
10p(x) calculates 10 ^x

Non-numeric values (including dates) are passed through without modifications. This is particularly suitable in combination with vectorization in order to pass through blank contents, explanatory text, etc.

Vectorization: These functions support vectorization in the 1st function parameter. Instead of providing a single value, you can provide a set or even a nested set which contain multiple values. The function will then process every value and its return value contains a corresponding set containing all results.

Call as: function

Restrictions

Indirect parameter passing is disabled
Vectorization is allowed in the 1st function parameter

Parameter count

1

Parameters

No.TypeDescription
1
input
all types
set
Value

Value or set containing multiple values (vectorization)

Return value

TypeDescription
all types
set
Result

Calculated value(s)

Examples

               echo( exp( 1 ) );
               echo( 10p( 3 ) );
               echo( 10p( 3.5 ) );

Output

2.7182818285
1000
3162.2776601684
Try it yourself: Open LIB_Function_exp.b4p in B4P_Examples.zip. Decompress before use.

See also

Logarithmic Functions