2009-11-06 25 views

回答

6

答案是expt,我打字是因爲StackOverflow不喜歡太短的答案。

13

R5RS Standard Pocedures

(expt z1 z2) 

Returns z1 raised to the power z2. For z1 0 

z1z2 = ez2 log z1 

0z is 1 if z = 0 and 0 otherwise. 

搜索 「計劃參考」 變成了這個文件。

3

(expt base power)是你想要的。所以(expt 2 3)表示2^3並且產生8.