<?xml version='1.0' encoding='utf-8' ?>
<!--  If you are running a bot please visit this policy page outlining rules you must respect. http://lj.rossia.org/bots/  -->
<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/'>
<channel>
  <title>blggr</title>
  <link>http://lj.rossia.org/users/blggr/</link>
  <description>blggr - LJ.Rossia.org</description>
  <managingEditor>blggr</managingEditor>
  <lastBuildDate>Fri, 29 Dec 2006 03:52:09 GMT</lastBuildDate>
  <generator>LiveJournal / LJ.Rossia.org</generator>
<item>
  <guid isPermaLink='true'>http://lj.rossia.org/users/blggr/852.html</guid>
  <pubDate>Fri, 29 Dec 2006 03:52:09 GMT</pubDate>
  <title>1.2 1.3 1.5</title>
  <link>http://lj.rossia.org/users/blggr/852.html</link>
  <description>#| the output is from MIT&apos;s Scheme compiler |#&lt;br /&gt;&lt;br /&gt;; 1.2&lt;br /&gt;&lt;br /&gt;1 ]=&amp;gt; (/ (+ 5 4   &lt;br /&gt;            (- 2&lt;br /&gt;              (- 3&lt;br /&gt;                (+ 6 (/ 4 5)))))&lt;br /&gt;         (* 3   &lt;br /&gt;           (- 6 3)&lt;br /&gt;           (- 3 7)))&lt;br /&gt;&lt;br /&gt;;Value: -37/90&lt;br /&gt;1 ]=&amp;gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;; 1.3&lt;br /&gt;1 ]=&amp;gt; (define (sum-of-squares a b) (+ (* a a) (* b b)))                         &lt;br /&gt;             &lt;br /&gt;;Value: sum-of-squares&lt;br /&gt;&lt;br /&gt;1 ]=&amp;gt; (define (sum-of-larger-nums a b c) (cond ( (and (&amp;lt;= a b) (&amp;lt;= a c)) (sum-of-squares b c)) ( (and (&amp;lt;= a b) (&amp;gt;= a c)) (sum-of-squares a b)) ( (and (&amp;lt;= a c) (&amp;gt;= a b)) (sum-of-squares a c)) (else (if (&amp;lt; b c) (sum-of-squares a c) (sum-of-squares a b)))))&lt;br /&gt;&lt;br /&gt;;Value: sum-of-larger-nums&lt;br /&gt;1 ]=&amp;gt; &lt;br /&gt;&lt;br /&gt;; 1.5&lt;br /&gt;&lt;br /&gt;#|&lt;br /&gt;normal-order evaluation will postpone evaluating the value of (p) until the first condition of if-clause fails. Since x==0, (p) will never be evaluated, and the value of 0 will be returned by the invocation of test.&lt;br /&gt;&lt;br /&gt;applicative-order evaluation will first evaluate argument values. Therefore it will trip on (p), which is undefined (???). In other words, it will never reach the stage of performing test on the operands&lt;br /&gt;|#&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align:left&quot;&gt;&lt;font size=&quot;-2&quot;&gt;&lt;a href=&quot;http://lj.rossia.org/users/blggr/852.html&quot;&gt;&lt;img src=&quot;http://lj.rossia.org/numreplies/blggr/852&quot; border=0 width=26 height=17  alt=&quot;number of comments&quot; style=&quot;border:0px;&quot; /&gt; &lt;strong&gt;Comments&lt;/strong&gt;&lt;/a&gt;&lt;/font&gt;&lt;/div&gt;</description>
  <comments>http://lj.rossia.org/users/blggr/852.html</comments>
  <category>sicp</category>
  <lj:music>	
structure and interpretation of computer programs</lj:music>
</item>
<item>
  <guid isPermaLink='true'>http://lj.rossia.org/users/blggr/682.html</guid>
  <pubDate>Fri, 29 Dec 2006 03:36:40 GMT</pubDate>
  <title>structure and interpretation of computer programs -- Abelson, Sussman &amp; Sussman</title>
  <link>http://lj.rossia.org/users/blggr/682.html</link>
  <description>I&apos;ll try to post my solutions to exercises as i progress thru the book.&lt;br /&gt;&lt;br /&gt;any corrections or suggestions are welcome, since many of them will likely be suboptimal&lt;br /&gt;&lt;br /&gt;so for what they&apos;re worth...&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align:left&quot;&gt;&lt;font size=&quot;-2&quot;&gt;&lt;a href=&quot;http://lj.rossia.org/users/blggr/682.html&quot;&gt;&lt;img src=&quot;http://lj.rossia.org/numreplies/blggr/682&quot; border=0 width=26 height=17  alt=&quot;number of comments&quot; style=&quot;border:0px;&quot; /&gt; &lt;strong&gt;Comments&lt;/strong&gt;&lt;/a&gt;&lt;/font&gt;&lt;/div&gt;</description>
  <comments>http://lj.rossia.org/users/blggr/682.html</comments>
  <category>structure and interpretation of computer</category>
</item>
</channel>
</rss>
