[gambit-list] How do you do Log N, Log 2, Log 10 in Gambit?

Marc Feeley feeley at iro.umontreal.ca
Sat Aug 4 08:27:04 EDT 2018

> On Aug 4, 2018, at 2:08 PM, Adam <adam.mlmb at gmail.com> wrote:
> While this may understandably appear trivial for you, would you mind to give one minute to spell out the code for

(define (log2 n) (logn n 2))
(define (log10 n) (logn n 10))
(define (logn n base) (/ (log n) (log base)))


More information about the Gambit-list mailing list