home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
xbase
/
library
/
clipper
/
rettig
/
tr_pow.prg
< prev
next >
Wrap
Text File
|
1990-10-21
|
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