38

pow, ^, ** doesn't work, and Scheme seems to be too common a word to be able to effectively google it.

Alice Purcell
  • 12,622
  • 6
  • 51
  • 57
Claudiu
  • 224,032
  • 165
  • 485
  • 680

3 Answers3

29

From 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.

Searching for "scheme reference" turns up this document.

Laurence Gonsalves
  • 137,896
  • 35
  • 246
  • 299
15

The answer is expt and I am typing because StackOverflow doesn't like too short answers.

Claudiu
  • 224,032
  • 165
  • 485
  • 680
8

(expt base power) is what you want. So (expt 2 3) expresses 2^3 and yields 8.

Reggie
  • 413
  • 2
  • 9
  • 19