<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-9182705499898252496.post8328830979852332708..comments</id><updated>2010-02-18T09:21:49.617-05:00</updated><category term='web'/><category term='bugs'/><category term='books'/><category term='interesting'/><category term='dotted-tail'/><category term='fermat'/><category term='pmd'/><category term='practice'/><category term='carroll'/><category term='css'/><category term='perfect numbers'/><category term='probability'/><category term='c++'/><category term='float'/><category term='bias'/><category term='integral'/><category term='simulation'/><category term='scheme'/><category term='halloween'/><category term='table'/><category term='snippets'/><category term='reading'/><category term='visualization'/><category term='big-o'/><category term='threads'/><category term='dvorak'/><category term='java'/><category term='double'/><category term='logic'/><category term='security'/><category term='fractals'/><category term='schneier'/><category term='coin toss'/><category term='links'/><category term='fibonacci'/><category term='misc'/><category term='c'/><category term='geometry'/><category term='pair programming'/><category term='algebra'/><category term='goldbach'/><category term='html'/><category term='vectors'/><category term='puzzles'/><category term='qwerty'/><category term='mersenne'/><category term='statistics'/><category term='testing'/><category term='chess'/><category term='crypto'/><category term='24'/><category term='horner'/><category term='randomness'/><category term='statitstics'/><category term='curiosity'/><category term='answers'/><category term='education'/><category term='technology'/><category term='blog spam'/><category term='benford'/><category term='cout'/><category term='pi'/><category term='lists'/><category term='conway'/><category term='map'/><category term='solutions'/><category term='data visualization'/><category term='unsolved'/><category term='python'/><category term='trees'/><category term='blowfish'/><category term='windows'/><category term='sicp'/><category term='productivity'/><category term='learning'/><category term='usability'/><category term='science'/><category term='gauss'/><category term='golden ratio'/><category term='math'/><category term='dodgson'/><category term='programming'/><category term='experience'/><category term='calculus'/><category term='CSV'/><category term='precision'/><category term='simpson'/><category term='letter frequency'/><category term='hints'/><category term='netbeans'/><category term='proof'/><category term='time'/><category term='sequences'/><category term='pascal'/><category term='primes'/><category term='captcha'/><category term='hello world'/><category term='data structures'/><category term='matrix'/><category term='euler'/><category term='exercises'/><category term='languages'/><category term='miller-rabin'/><category term='quotes'/><category term='gambling'/><category term='chaos'/><category term='numbers'/><category term='equals'/><category term='questions'/><category term='sets'/><title type='text'>Comments on Bill the Lizard: SICP Exercise 1.16: Fast Exponentiation</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.billthelizard.com/feeds/8328830979852332708/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8328830979852332708/comments/default'/><link rel='alternate' type='text/html' href='http://www.billthelizard.com/2010/01/sicp-exercise-116-fast-exponentiation.html'/><author><name>Bill the Lizard</name><uri>http://www.blogger.com/profile/09810099093752485841</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_PnLYRqe0k9g/SKywgF43rhI/AAAAAAAAAAQ/0l6VoF8jG0M/S220/lizard-icon.jpeg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9182705499898252496.post-7096857566207291495</id><published>2010-02-18T09:21:49.617-05:00</published><updated>2010-02-18T09:21:49.617-05:00</updated><title type='text'>geeknanny,
You&amp;#39;re absolutely right.  The tail-...</title><content type='html'>geeknanny,&lt;br /&gt;You&amp;#39;re absolutely right.  The tail-call version will be more efficient in both time and (stack) space for most exponents.  (They&amp;#39;ll run virtually the same for exponents that are powers of 2.)&lt;br /&gt;&lt;br /&gt;I hadn&amp;#39;t noticed this before, thanks for pointing it out.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8328830979852332708/comments/default/7096857566207291495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8328830979852332708/comments/default/7096857566207291495'/><link rel='alternate' type='text/html' href='http://www.billthelizard.com/2010/01/sicp-exercise-116-fast-exponentiation.html?showComment=1266502909617#c7096857566207291495' title=''/><author><name>Bill the Lizard</name><uri>http://www.blogger.com/profile/09810099093752485841</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_PnLYRqe0k9g/SKywgF43rhI/AAAAAAAAAAQ/0l6VoF8jG0M/S220/lizard-icon.jpeg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.billthelizard.com/2010/01/sicp-exercise-116-fast-exponentiation.html' ref='tag:blogger.com,1999:blog-9182705499898252496.post-8328830979852332708' source='http://www.blogger.com/feeds/9182705499898252496/posts/default/8328830979852332708' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-743262253'/></entry><entry><id>tag:blogger.com,1999:blog-9182705499898252496.post-8579143129679968310</id><published>2010-02-18T00:00:19.220-05:00</published><updated>2010-02-18T00:00:19.220-05:00</updated><title type='text'>pbewig&amp;#39;s ipow function isn&amp;#39;t tail-recursiv...</title><content type='html'>pbewig&amp;#39;s ipow function isn&amp;#39;t tail-recursive, is it? The else condition calls ipow and then multiplies the result by b. Rewriting the function to be tail-recursive is the whole point of the exercise, yes?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8328830979852332708/comments/default/8579143129679968310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8328830979852332708/comments/default/8579143129679968310'/><link rel='alternate' type='text/html' href='http://www.billthelizard.com/2010/01/sicp-exercise-116-fast-exponentiation.html?showComment=1266469219220#c8579143129679968310' title=''/><author><name>geeknanny</name><uri>http://www.blogger.com/profile/03316559904136602000</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.billthelizard.com/2010/01/sicp-exercise-116-fast-exponentiation.html' ref='tag:blogger.com,1999:blog-9182705499898252496.post-8328830979852332708' source='http://www.blogger.com/feeds/9182705499898252496/posts/default/8328830979852332708' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1782682262'/></entry><entry><id>tag:blogger.com,1999:blog-9182705499898252496.post-3013105749125998472</id><published>2010-01-11T19:51:23.728-05:00</published><updated>2010-01-11T19:51:23.728-05:00</updated><title type='text'>pbewig,
There&amp;#39;s a lot of really useful stuff i...</title><content type='html'>pbewig,&lt;br /&gt;There&amp;#39;s a lot of really useful stuff in your Standard Prelude.  That will probably be the first place I look for hints if I get stuck on any SICP exercises.  I can already tell it will come in handy when I get to the next chapter, which deals with data abstraction.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8328830979852332708/comments/default/3013105749125998472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8328830979852332708/comments/default/3013105749125998472'/><link rel='alternate' type='text/html' href='http://www.billthelizard.com/2010/01/sicp-exercise-116-fast-exponentiation.html?showComment=1263257483728#c3013105749125998472' title=''/><author><name>Bill the Lizard</name><uri>http://www.blogger.com/profile/09810099093752485841</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_PnLYRqe0k9g/SKywgF43rhI/AAAAAAAAAAQ/0l6VoF8jG0M/S220/lizard-icon.jpeg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.billthelizard.com/2010/01/sicp-exercise-116-fast-exponentiation.html' ref='tag:blogger.com,1999:blog-9182705499898252496.post-8328830979852332708' source='http://www.blogger.com/feeds/9182705499898252496/posts/default/8328830979852332708' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-743262253'/></entry><entry><id>tag:blogger.com,1999:blog-9182705499898252496.post-9129588889863893220</id><published>2010-01-11T19:07:00.856-05:00</published><updated>2010-01-11T19:07:00.856-05:00</updated><title type='text'>The &lt;a href="http://programmingpraxis.com/standard...</title><content type='html'>The &lt;a href="http://programmingpraxis.com/standard-prelude/#ipow" rel="nofollow"&gt;ipow&lt;/a&gt; function in my &lt;a href="http://programmingpraxis.com/standard-prelude/" rel="nofollow"&gt;Standard Prelude&lt;/a&gt; does this using exactly the same algorithm:&lt;br /&gt;&lt;br /&gt;(define (ipow b e)&lt;br /&gt;  (cond ((zero? e) 1)&lt;br /&gt;        ((even? e) (ipow (* b b) (/ e 2)))&lt;br /&gt;        (else (* b (ipow (* b b) (/ (- e 1) 2))))))</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8328830979852332708/comments/default/9129588889863893220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8328830979852332708/comments/default/9129588889863893220'/><link rel='alternate' type='text/html' href='http://www.billthelizard.com/2010/01/sicp-exercise-116-fast-exponentiation.html?showComment=1263254820856#c9129588889863893220' title=''/><author><name>pbewig</name><uri>http://www.blogger.com/profile/11936034693953650339</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.billthelizard.com/2010/01/sicp-exercise-116-fast-exponentiation.html' ref='tag:blogger.com,1999:blog-9182705499898252496.post-8328830979852332708' source='http://www.blogger.com/feeds/9182705499898252496/posts/default/8328830979852332708' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1934134733'/></entry></feed>
