c_pxe32k - Performs a scale exponentiation on each element of an array of 2-byte integers. The formula used is 32767 raised to the (i/32767).

SYNTAX

#include "worgen.h"

FUNCTION c_pxe32k (in, out, ns, dtype)

     short               *in;
     double              *out;
     long                *ns;
     long                *dtype;

PARAMETERS

in (input, short('ns'))

Input array.

out (output, double('ns'))

Output array to hold result.

ns (input, integer)

Number of elements in the input array.

dtype (input, integer)

An integer value that represents the type of data of the input array. Legal values include:

     = EBYTE(1):     unsigned byte data
     = EWORD(2):     signed two byte data
     = ELONG(3):     signed four byte data
     = EREAL(4):     four byte floating point data

DESCRIPTION

c_pxe32K() returns a scaled exponentiation on each element of an input array. The input array must be of type short, and the output array will be of type double.

RETURN VALUE

c_pxe32K() returns

    E_SUCC --> successful completion
    TYPERR --> invalid type specified