[taos-glug] Exercise 1.11; what do you get for f(26)?; (current-time)
- From: Philip Ansteth <pansteth@xxxxxxxxxxx>
- To: taos-glug@xxxxxxxxxxxxx
- Date: Sat, 19 Jul 2003 21:09:07 -0600
In Exercise 1.11, for f(26), I get 1930252097.
Can anyone confirm that result?
My version that's intended to describe an iterative process does
run much faster than the one that intended to describe a recursive process
(less than 1 second vs. 20 seconds).
But how do I _prove_ that either is correctly written?
I could be making the same mistake twice.
By the way, I found a function called "current-time" that returns the number of
seconds since 1970-01-01 00:00:00 UTC, excluding leap seconds.
See http://www.gnu.org/software/guile/docs/guile-ref/Time.html#Time
I gather "current-time" is a Guile library function, not a Scheme standard
procedure.
But I'd expect that other implementations of Scheme to have similar facilities.
Other related posts:
- » [taos-glug] Exercise 1.11; what do you get for f(26)?; (current-time)