home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
database
/
rettig.zip
/
TRSOURCE.EXE
/
TR_POW.PRG
< prev
next >
Wrap
Text File
|
1990-10-22
|
424b
|
22 lines
*********
* Function : POWER
* By : Ralph Davis
* Placed in the public domain by Tom Rettig Associates, 10/22/1990.
*********
FUNCTION POWER
* Syntax: POWER( <number>, <power> )
* Return: <expN> value of <number> raised to <power>
* <number> and <power> are both <expN>
PARAMETERS x, y
IF x < 0
RETURN -EXP( y * LOG(ABS(x)) )
ELSE
RETURN EXP( y * LOG(ABS(x)) )
ENDIF
* eofunc: power