Dodan html posodobljenega org fajla

main
Jurij Podgoršek 2024-04-21 17:14:20 +02:00
parent e015981f91
commit c41ba55b2c
1 changed files with 94 additions and 39 deletions

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <head>
<!-- 2024-04-19 pet 03:21 --> <!-- 2024-04-21 ned 17:14 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Zapiski #1 srečanja programerskega bralnega krožka SICP</title> <title>Zapiski #1 srečanja programerskega bralnega krožka SICP</title>
@ -198,13 +198,13 @@
<div id="content" class="content"> <div id="content" class="content">
<h1 class="title">Zapiski #1 srečanja programerskega bralnega krožka SICP</h1> <h1 class="title">Zapiski #1 srečanja programerskega bralnega krožka SICP</h1>
<div id="outline-container-orgf13b9c3" class="outline-2"> <div id="outline-container-org64c99ec" class="outline-2">
<h2 id="orgf13b9c3">Zanimivi izseki</h2> <h2 id="org64c99ec">Zanimivi izseki</h2>
<div class="outline-text-2" id="text-orgf13b9c3"> <div class="outline-text-2" id="text-org64c99ec">
</div> </div>
<div id="outline-container-org6dd5c7a" class="outline-3"> <div id="outline-container-org194a9b6" class="outline-3">
<h3 id="org6dd5c7a">str. 9</h3> <h3 id="org194a9b6">str. 9</h3>
<div class="outline-text-3" id="text-org6dd5c7a"> <div class="outline-text-3" id="text-org194a9b6">
<blockquote> <blockquote>
<p> <p>
Every reader should ask himself periodically "Toward what end, toward what end?" — but do not ask it too often lest you pass up the fun of programming for the constipation of bittersweet philosophy. Every reader should ask himself periodically "Toward what end, toward what end?" — but do not ask it too often lest you pass up the fun of programming for the constipation of bittersweet philosophy.
@ -218,9 +218,9 @@ Lisp is a survivor, having been in use for about a quarter of a century.
</blockquote> </blockquote>
</div> </div>
</div> </div>
<div id="outline-container-orgf4b5a63" class="outline-3"> <div id="outline-container-org693632b" class="outline-3">
<h3 id="orgf4b5a63">str. 11</h3> <h3 id="org693632b">str. 11</h3>
<div class="outline-text-3" id="text-orgf4b5a63"> <div class="outline-text-3" id="text-org693632b">
<blockquote> <blockquote>
<p> <p>
It is better to have 100 functions operate on one data structure than to have 10 functions operate on 10 data structures. It is better to have 100 functions operate on one data structure than to have 10 functions operate on 10 data structures.
@ -228,9 +228,9 @@ It is better to have 100 functions operate on one data structure than to have 10
</blockquote> </blockquote>
</div> </div>
</div> </div>
<div id="outline-container-orgff1a59a" class="outline-3"> <div id="outline-container-orgb667f1c" class="outline-3">
<h3 id="orgff1a59a">str. 18</h3> <h3 id="orgb667f1c">str. 18</h3>
<div class="outline-text-3" id="text-orgff1a59a"> <div class="outline-text-3" id="text-orgb667f1c">
<blockquote> <blockquote>
<p> <p>
Thus, programs must be written for people to read, and only incidentally for machines to execute. Thus, programs must be written for people to read, and only incidentally for machines to execute.
@ -238,9 +238,9 @@ Thus, programs must be written for people to read, and only incidentally for mac
</blockquote> </blockquote>
</div> </div>
</div> </div>
<div id="outline-container-org5cf6454" class="outline-3"> <div id="outline-container-orgb73c591" class="outline-3">
<h3 id="org5cf6454">str. 19</h3> <h3 id="orgb73c591">str. 19</h3>
<div class="outline-text-3" id="text-org5cf6454"> <div class="outline-text-3" id="text-orgb73c591">
<blockquote> <blockquote>
<p> <p>
Underlying our approach to this subject is our conviction that "computer science" is not a science and that its significance has little to do with computers. Underlying our approach to this subject is our conviction that "computer science" is not a science and that its significance has little to do with computers.
@ -248,9 +248,9 @@ Underlying our approach to this subject is our conviction that "computer science
</blockquote> </blockquote>
</div> </div>
</div> </div>
<div id="outline-container-org3a842a8" class="outline-3"> <div id="outline-container-org893e1cb" class="outline-3">
<h3 id="org3a842a8">str. 27</h3> <h3 id="org893e1cb">str. 27</h3>
<div class="outline-text-3" id="text-org3a842a8"> <div class="outline-text-3" id="text-org893e1cb">
<blockquote> <blockquote>
<p> <p>
Finally, we would like to acknowledge the support of the organizations that have encouraged this work over the years, including support from Hewlett-Packard, made possible by Ira Goldstein and Joel Birnbaum, and support from DARPA, made possible by Bob Kahn. Finally, we would like to acknowledge the support of the organizations that have encouraged this work over the years, including support from Hewlett-Packard, made possible by Ira Goldstein and Joel Birnbaum, and support from DARPA, made possible by Bob Kahn.
@ -271,25 +271,25 @@ Preko očeta v sorodu s fizikom Hermanom Kahnom, ki je napisal knjigo o tem kako
</div> </div>
</div> </div>
<div id="outline-container-orge1c4900" class="outline-3"> <div id="outline-container-orge5805a5" class="outline-3">
<h3 id="orge1c4900">str. 77</h3> <h3 id="orge5805a5">str. 77</h3>
<div class="outline-text-3" id="text-orge1c4900"> <div class="outline-text-3" id="text-orge5805a5">
<p> <p>
Stoy 1977 Stoy 1977
</p> </p>
</div> </div>
</div> </div>
</div> </div>
<div id="outline-container-orga40fa6f" class="outline-2"> <div id="outline-container-org1c63637" class="outline-2">
<h2 id="orga40fa6f">Vaje</h2> <h2 id="org1c63637">Vaje</h2>
<div class="outline-text-2" id="text-orga40fa6f"> <div class="outline-text-2" id="text-org1c63637">
</div> </div>
<div id="outline-container-org87386e8" class="outline-3"> <div id="outline-container-orgafe93de" class="outline-3">
<h3 id="org87386e8">1.1 Kaj vrnejo izrazi?</h3> <h3 id="orgafe93de">1.1 Kaj vrnejo izrazi?</h3>
</div> </div>
<div id="outline-container-org064f595" class="outline-3"> <div id="outline-container-orgd634413" class="outline-3">
<h3 id="org064f595">1.2 Pretvori izraz v prefix obliko</h3> <h3 id="orgd634413">1.2 Pretvori izraz v prefix obliko</h3>
<div class="outline-text-3" id="text-org064f595"> <div class="outline-text-3" id="text-orgd634413">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-scheme"><span style="color: #458588;">(</span>/ <span style="color: #b16286;">(</span>+ 5 4 <pre class="src src-scheme"><span style="color: #458588;">(</span>/ <span style="color: #b16286;">(</span>+ 5 4
<span style="color: #8ec07c;">(</span>- 2 <span style="color: #8ec07c;">(</span>- 2
@ -307,28 +307,83 @@ Stoy 1977
</pre> </pre>
</div> </div>
</div> </div>
<div id="outline-container-org88b125f" class="outline-3"> <div id="outline-container-org4555def" class="outline-3">
<h3 id="org88b125f">1.3 procedura, ki prejme 3 argumente in vrne vsoto kvadratov vecjih dveh</h3> <h3 id="org4555def">1.3 procedura, ki prejme 3 argumente in vrne vsoto kvadratov vecjih dveh</h3>
<div class="outline-text-3" id="text-org88b125f"> <div class="outline-text-3" id="text-org4555def">
<div class="org-src-container"> <div class="org-src-container">
<pre class="src src-scheme"><span style="color: #458588;">(</span><span style="color: #fb4933;">define</span> <span style="color: #b16286;">(</span><span style="color: #fabd2f;">vsota-vecjih-kvadratov</span> a b c<span style="color: #b16286;">)</span> <pre class="src src-scheme"><span style="color: #458588;">(</span><span style="color: #fb4933;">define</span> <span style="color: #b16286;">(</span><span style="color: #fabd2f;">vsota-vecjih-kvadratov</span> a b c<span style="color: #b16286;">)</span>
<span style="color: #b16286;">(</span><span style="color: #fb4933;">cond</span> <span style="color: #8ec07c;">(</span><span style="color: #d65d0e;">(</span>&lt;= a b c<span style="color: #d65d0e;">)</span> <span style="color: #d65d0e;">(</span>+ <span style="color: #458588;">(</span>* b b<span style="color: #458588;">)</span> <span style="color: #458588;">(</span>* c c<span style="color: #458588;">)</span><span style="color: #d65d0e;">)</span><span style="color: #8ec07c;">)</span> <span style="color: #b16286;">(</span><span style="color: #fb4933;">cond</span> <span style="color: #8ec07c;">(</span><span style="color: #d65d0e;">(</span>&lt;= a b c<span style="color: #d65d0e;">)</span> <span style="color: #d65d0e;">(</span>+ <span style="color: #458588;">(</span>* b b<span style="color: #458588;">)</span> <span style="color: #458588;">(</span>* c c<span style="color: #458588;">)</span><span style="color: #d65d0e;">)</span><span style="color: #8ec07c;">)</span>
<span style="color: #8ec07c;">(</span><span style="color: #d65d0e;">(</span>&lt;= b a c<span style="color: #d65d0e;">)</span> <span style="color: #d65d0e;">(</span>+ <span style="color: #458588;">(</span>* a a<span style="color: #458588;">)</span> <span style="color: #458588;">(</span>* c c<span style="color: #458588;">)</span><span style="color: #d65d0e;">)</span><span style="color: #8ec07c;">)</span> <span style="color: #8ec07c;">(</span><span style="color: #d65d0e;">(</span>&lt;= b a c<span style="color: #d65d0e;">)</span> <span style="color: #d65d0e;">(</span>+ <span style="color: #458588;">(</span>* a a<span style="color: #458588;">)</span> <span style="color: #458588;">(</span>* c c<span style="color: #458588;">)</span><span style="color: #d65d0e;">)</span><span style="color: #8ec07c;">)</span>
<span style="color: #8ec07c;">(</span><span style="color: #fb4933;">else</span> <span style="color: #d65d0e;">(</span>+ <span style="color: #458588;">(</span>* b b<span style="color: #458588;">)</span> <span style="color: #458588;">(</span>* a a<span style="color: #458588;">)</span><span style="color: #d65d0e;">)</span><span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span><span style="color: #458588;">)</span> <span style="color: #8ec07c;">(</span><span style="color: #fb4933;">else</span> <span style="color: #d65d0e;">(</span>+ <span style="color: #458588;">(</span>* b b<span style="color: #458588;">)</span> <span style="color: #458588;">(</span>* a a<span style="color: #458588;">)</span><span style="color: #d65d0e;">)</span><span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span><span style="color: #458588;">)</span>
<span style="color: #7c6f64;">;; </span><span style="color: #7c6f64;">^ NAROBE! &lt;= primerja vse tri stevilke, ne prvo z drugima dvema oz. ostalimi</span>
<span style="color: #458588;">(</span>vsota-vecjih-kvadratov 6 1 7<span style="color: #458588;">)</span> <span style="color: #458588;">(</span><span style="color: #fb4933;">define</span> <span style="color: #b16286;">(</span><span style="color: #fabd2f;">+kvadrat</span> a b<span style="color: #b16286;">)</span> <span style="color: #b16286;">(</span>+ <span style="color: #8ec07c;">(</span>* a a<span style="color: #8ec07c;">)</span> <span style="color: #8ec07c;">(</span>* b b<span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span><span style="color: #458588;">)</span>
<span style="color: #458588;">(</span><span style="color: #fb4933;">define</span> <span style="color: #b16286;">(</span><span style="color: #fabd2f;">vsota-vecjih-kvadratov2</span> a b c<span style="color: #b16286;">)</span>
<span style="color: #b16286;">(</span><span style="color: #fb4933;">if</span> <span style="color: #8ec07c;">(</span>&gt;= a b<span style="color: #8ec07c;">)</span>
<span style="color: #8ec07c;">(</span><span style="color: #fb4933;">if</span> <span style="color: #d65d0e;">(</span>&gt;= b c<span style="color: #d65d0e;">)</span>
<span style="color: #d65d0e;">(</span>+kvadrat a b<span style="color: #d65d0e;">)</span>
<span style="color: #d65d0e;">(</span>+kvadrat a c<span style="color: #d65d0e;">)</span><span style="color: #8ec07c;">)</span>
<span style="color: #8ec07c;">(</span><span style="color: #fb4933;">if</span> <span style="color: #d65d0e;">(</span>&gt;= a c<span style="color: #d65d0e;">)</span>
<span style="color: #d65d0e;">(</span>+kvadrat a b<span style="color: #d65d0e;">)</span>
<span style="color: #d65d0e;">(</span>+kvadrat b c<span style="color: #d65d0e;">)</span><span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span><span style="color: #458588;">)</span>
<span style="color: #458588;">(</span>list
<span style="color: #b8bb26;">"Pricakovano"</span>
'<span style="color: #b16286;">(</span>85 41 164 89<span style="color: #b16286;">)</span>
<span style="color: #b8bb26;">"Funkcija1"</span>
<span style="color: #b16286;">(</span>list <span style="color: #8ec07c;">(</span>vsota-vecjih-kvadratov 6 1 7<span style="color: #8ec07c;">)</span>
<span style="color: #8ec07c;">(</span>vsota-vecjih-kvadratov 3 4 5<span style="color: #8ec07c;">)</span>
<span style="color: #8ec07c;">(</span>vsota-vecjih-kvadratov 8 10 2<span style="color: #8ec07c;">)</span>
<span style="color: #8ec07c;">(</span>vsota-vecjih-kvadratov 3 8 5<span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span>
<span style="color: #b8bb26;">"Funkcija2"</span>
<span style="color: #b16286;">(</span>list <span style="color: #8ec07c;">(</span>vsota-vecjih-kvadratov2 6 1 7<span style="color: #8ec07c;">)</span>
<span style="color: #8ec07c;">(</span>vsota-vecjih-kvadratov2 3 4 5<span style="color: #8ec07c;">)</span>
<span style="color: #8ec07c;">(</span>vsota-vecjih-kvadratov2 8 10 2<span style="color: #8ec07c;">)</span>
<span style="color: #8ec07c;">(</span>vsota-vecjih-kvadratov2 3 8 5<span style="color: #8ec07c;">)</span><span style="color: #b16286;">)</span><span style="color: #458588;">)</span>
</pre> </pre>
</div> </div>
<pre class="example"> <table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
85
</pre>
<colgroup>
<col class="org-left" />
<col class="org-left" />
<col class="org-left" />
<col class="org-left" />
<col class="org-left" />
<col class="org-left" />
</colgroup>
<tbody>
<tr>
<td class="org-left">Pricakovano</td>
<td class="org-left">(85 41 164 89)</td>
<td class="org-left">Funkcija1</td>
<td class="org-left">(85 41 164 73)</td>
<td class="org-left">Funkcija2</td>
<td class="org-left">(85 41 164 89)</td>
</tr>
</tbody>
</table>
</div> </div>
</div> </div>
<div id="outline-container-org6cba8c5" class="outline-3">
<h3 id="org6cba8c5">1.4</h3> <div id="outline-container-org5346a0a" class="outline-3">
<h3 id="org5346a0a">1.4</h3>
</div> </div>
</div> </div>
</div> </div>
<div id="postamble" class="status">
<p class="author">Author: Jurij</p>
<p class="date">Created: 2024-04-21 ned 17:14</p>
<p class="validation"><a href="https://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
</body> </body>
</html> </html>