pow

Gamma: Version 4.0
Prev |  | Next

# `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>

Prev | Home | Next
`neg` | Up | `random`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.