2^2 = 4 2^3 = 8 10^2 = 100 5^0.5 = 2.23606 etc
Function Power(Number,Pwr:Real): Real;varA:Word;Temp:String;
begin; Temp := Number; For A := 1 to (Pwr - 1) do Temp := Temp * Number; power := Temp;end;
Note: I know it's not Exp(), that just returns the number in terms of powers of e.URL:http://acheronx.ml.org/home/
: 2^2 = 4 2^3 = 8 10^2 = 100 5^0.5 = 2.23606 etc
: Thank you
: -Ralf.Just use the log and exp functions to calculate powers.If I remember correctly, you can use some combination of themto produce powers of numbers : exp(y*ln(x)) which is the same asx^y.
It looks like you're new here. If you want to get involved, click one of these buttons!