Skip to end of banner
Go to start of banner

exp

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Availability

This routine is available starting with katl-commons 2.5.

Syntax

exp(number)

Description


Returns e raised to the power of number.

The constant e equals 2.71828182845904, the base of the natural logarithm


Parameters

ParameterTypeRequiredDescription
numberNumberYesExponent applied to the base e.

Return type

number

Example

number a = exp(1);
print("a= " + a);

number b = exp(2);
print("b= " + b);

number c = exp(-2);
print("c= " + c);

number d = exp(0); 
print("d= " + d);

Prints:

        a= 2.71828182845904 ;

        b= 7.38905609893065 ;

        c= 0.1353352832366127;

        d= 1;

See also


  • No labels