Exponential Functions

Prev Next

Function Names

exp, 10p

Description

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

Call as: function

Restrictions

Indirect parameter passing is disabled

Parameter count

1

Parameters

No.TypeDescription
1
input
numeral Exponent value

Value to be raised to the power exponent

Return value

TypeDescription
numeral Result

Calculated value

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