<?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/  --><feed version='0.3' xmlns='http://purl.org/atom/ns#'>
<title mode='escaped'>blggr</title>
<tagline mode='escaped'>blggr</tagline>
<link rel='alternate' type='text/html' href='http://lj.rossia.org/users/blggr/' />
<modified>2006-12-29T03:52:09Z</modified><link rel='service.feed' type='application/x.atom+xml' title='blggr' href='http://lj.rossia.org/users/blggr/data/atom' />  <entry xmlns="http://purl.org/atom/ns#">
    <title mode='escaped'>1.2 1.3 1.5</title>
    <id>urn:lj:lj.rossia.org:atom1:blggr:852</id>
    <link rel='alternate' type='text/html' href='http://lj.rossia.org/users/blggr/852.html' />
    <issued>2006-12-28T22:35:00</issued>
    <modified>2006-12-29T03:52:09Z</modified>
    <author>
      <name>blggr</name>
    </author>
    <category term='sicp' />
    <content type='text/html' mode='escaped'>#| 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;</content>
  </entry>
  <entry xmlns="http://purl.org/atom/ns#">
    <title mode='escaped'>structure and interpretation of computer programs -- Abelson, Sussman &amp; Sussman</title>
    <id>urn:lj:lj.rossia.org:atom1:blggr:682</id>
    <link rel='alternate' type='text/html' href='http://lj.rossia.org/users/blggr/682.html' />
    <issued>2006-12-28T22:08:00</issued>
    <modified>2006-12-29T03:36:40Z</modified>
    <author>
      <name>blggr</name>
    </author>
    <category term='structure and interpretation of computer' />
    <content type='text/html' mode='escaped'>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;</content>
  </entry>
</feed>
