home *** CD-ROM | disk | FTP | other *** search
- {->>>>Power<<<<------------------------------------------------}
- { }
- { Filename : POWER.SRC -- Last Modified 9/29/88 }
- { }
- { This routine performs the general function of raising }
- { Mantissa to the power Exponent. This is slow as such things }
- { go; if you need to do this within a tight loop, be tricky }
- { and do it some other way. }
- { }
- { From: COMPLETE TURBO PASCAL 5.0 by Jeff Duntemann }
- { Scott, Foresman & Co., Inc. 1988 ISBN 0-673-38355-5 }
- {--------------------------------------------------------------}
-
- FUNCTION Power(Mantissa,Exponent : Real) : Real;
-
- BEGIN
- Power := Exp(Ln(Mantissa) * Exponent)
- END;