My solutions to the exercises in Structure and Interpretation of Computer Programs.
Go to file
Felix Martin d25e14aaa2 Implement 2.93
This took way longer than expected. First, I noticed that mixed up
sparse and dense terms so I fixed that. Then I extended the rational
package to use generic operations. However, I did not work and it took
me two hours to find the root cause. The problem was that appply-generic
tried to raise raise and drop the rationals with polynomials. The
rational to scheme and rational to real procedures do not support
polynomials which caused the error. I changed these procedures so that
they only attempt coercion of the arguments are numbers. This is not
fully correct as it destroys our ability to have rationals of rationals,
for example, but good enough for our purposes.
2020-12-05 12:48:56 -05:00
picture_language Implement till 2.50 and visualize picture language via pil 2020-11-01 11:45:41 -05:00
.gitignore Implement till 2.50 and visualize picture language via pil 2020-11-01 11:45:41 -05:00
ex-1_01-10.scm Finish exercises for chapter 1 section 1 and 2 2020-10-15 20:38:28 -04:00
ex-1_11-20.scm Implement till 2.76 2020-11-17 13:33:55 -05:00
ex-1_21-28.scm Finish exercises for chapter 1 section 1 and 2 2020-10-15 20:38:28 -04:00
ex-1_29-34.scm Implement till 2.76 2020-11-17 13:33:55 -05:00
ex-1_35-39.scm Implement till 2.62 2020-11-15 11:30:56 -05:00
ex-1_40-46.scm Finish chapter 1 (rerun) 2020-10-15 21:14:22 -04:00
ex-2_01-06.scm Implement exercises till 2.6 2020-10-25 21:40:51 -04:00
ex-2_07-16.scm Finish 2.1 exercises 2020-10-28 10:57:13 -04:00
ex-2_17-23.scm Implement exercises till 2.23 2020-10-29 11:47:13 -04:00
ex-2_24-32.scm Implement till 2.76 2020-11-17 13:33:55 -05:00
ex-2_33-43.scm Implement till 2.62 2020-11-15 11:30:56 -05:00
ex-2_44-52.scm Implement till 2.53 2020-11-01 12:19:35 -05:00
ex-2_53-58.scm Add tests to 2.58 2020-11-13 11:38:23 -05:00
ex-2_59-66.scm Implement till 2.76 2020-11-17 13:33:55 -05:00
ex-2_67-72.scm Implement till 2.72 2020-11-16 12:36:19 -05:00
ex-2_73-76.scm Implement till 2.76 2020-11-17 13:33:55 -05:00
ex-2_77-97.scm Implement 2.93 2020-12-05 12:48:56 -05:00
LICENSE Initial commit 2020-10-12 02:45:43 +02:00
README.md Remove todos from readme and add script to execute scripts 2020-10-12 12:35:00 -04:00
run Implement up to 2.39 2020-10-30 20:15:03 -04:00
util.scm Implement till 2.83 2020-11-20 22:04:19 -05:00

SICP

These are my solutions to the CS classic Structure and Interpretation of Computer Programs. I have looked up the answer for some exercises on the Scheme Community Wiki. Such exercise have a marked in their respective script.

You can use the Scheme implementation by the MIT to run these scripts. In Arch, execute pacman -S mit-scheme to install it. Then run the scripts via mit-scheme --quiet < script.scm.

This is currently (2020/10/12) work in progress.