pow
, ^
, **
doesn't work, and Scheme seems to be too common a word to be able to effectively google it.
(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.
A function object can be bound to a name via define like any other kind of value. But we often use a slightly different, equivalent syntax for function definitions, where the ' lambda ' is implicitly specified. (define f (lambda (p1 p2) ... ))
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.
The answer is expt
and I am typing because StackOverflow doesn't like too short answers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With