pow

pow — raises a base to the power of an exponent.

Syntax

pow (base, exponent)

		

Arguments

base

Any number.

exponent

Any number.

Returns

The result of raising the base to the given exponent.

Description

Calculates a base to the power of an exponent. Non-numbers are treated as zero.

Example

Gamma> pow(2,3);
8
Gamma> pow(12,2);
144
Gamma> pow(5.2,4.75);
2517.7690015606849556
Gamma>