麻省理工学院:《自制决策制造原则》英文版 16.410: Jump Starting With Scheme

ourtesy of Andreas Hoffman. Used with permission 16.410: Jump Starting With Scheme by Andreas Hoffman Introduction This jumpstart shows you the basics of getting Scheme started, running simple programs, that the Scheme installed in the 16.410 computer lab is the Windows vers Ban On simple editing and debugging, and exiting out of Scheme. The jumpstart is oriented towards Windows installations, but can be adapted for Unix and other installations. Note Please note that this jumpstart will give you only the most rudimentary skills in Scheme To get through the course, you will have to obtain a bit more information. The Scheme user and reference manuals are excellent resources, and are available as part of the Scheme installation; just go to the Windows Start menu, and select: Programs, MIT Scheme, Documentation. Please see the course web page for the url to the Scheme download site and the location and hours of the course lab Hello world Start the Scheme interpreter by going to the Windows start menu and selecting Programs, MIT Scheme, Scheme. At the prompt, enter the following form ( display"Hello, World! " (newline)) The interpreter prints out Hello. World The interpreter also prints out a message indicating"unspecified return value". This is not an error message; it simply states that the Scheme form you entered doesn't return any value. Some forms return values, some don't. Now, enter the following form (begi (display Hello, World! (newline)5) Now, the interpreter indicates the returned value(5). Let's exit Scheme(dont worry, we'll come back to it. To exit, simply enter the form (exit)
16.410: Jump Starting With Scheme by Andreas Hoffman Introduction This jumpstart shows you the basics of getting Scheme started, running simple programs, simple editing and debugging, and exiting out of Scheme. The jumpstart is oriented towards Windows installations, but can be adapted for Unix and other installations. Note that the Scheme installed in the 16.410 computer lab is the Windows version. Please note that this jumpstart will give you only the most rudimentary skills in Scheme. To get through the course, you will have to obtain a bit more information. The Scheme user and reference manuals are excellent resources, and are available as part of the Scheme installation; just go to the Windows Start menu, and select: Programs, MIT Scheme, Documentation. Please see the course web page for the url to the Scheme download site and the location and hours of the course lab. Hello World Start the Scheme interpreter by going to the Windows start menu and selecting: Programs, MIT Scheme, Scheme. At the prompt, enter the following form: (begin (display "Hello, World!") (newline)) The interpreter prints out Hello, World! The interpreter also prints out a message indicating "unspecified return value". This is not an error message; it simply states that the Scheme form you entered doesn't return any value. Some forms return values, some don't. Now, enter the following form: (begin (display "Hello, World!") (newline) 5) Now, the interpreter indicates the returned value (5). Let's exit Scheme (don't worry, we'll come back to it. To exit, simply enter the form: (exit) Courtesy of Andreas Hoffman. Used with permission

Using Edwin Edwin is the editor that comes with Scheme. Edwin is based on Emacs, and therefore many of the keystroke combinations in Edwin are the same as they are in Emacs. You don't have to use Edwin to edit Scheme programs (you could do it in Wordpad, for example). However, you are highly encouraged to learn the basics of using Edwin; it will save you time later To start Edwin, go to the Windows Start menu, and select: Programs, MIT Scheme, Edwin. This will bring up the Edwin editor. Type in one of the previous hello world forms. Then, with the cursor at the end of the form, use the keystroke combination ctrl-x ctrl-e to evaluate the form Note that in the scheme editor forms are not evaluated automatically Now, let's write a Scheme program and save it in a file. First, to get a new buffer, do ctrl-x ctrl-f Edwin will prompt you for a path. Enter an appropriate path for your directory, and end it with the file name hello world. scm Scheme will indicate that this is a new file. now enter one of the previous hello world forms into the new buffer. When done, do ctrI-x ctrI-s This saves the file Next. do ctrl-x b This switches you back to the Edwin Scheme interpreter. Load the file Hello World.scm into the interpreter by doing (load [path where path] is the path for the Hello world. scm file Then do ctrl-x ctrl-e to evaluate. Note that the result is the same as when this was typed in directly to the interpreter. Leave Edwin by doing ctrl-x ctrl
Using Edwin Edwin is the editor that comes with Scheme. Edwin is based on Emacs, and therefore, many of the keystroke combinations in Edwin are the same as they are in Emacs. You don't have to use Edwin to edit Scheme programs (you could do it in Wordpad, for example). However, you are highly encouraged to learn the basics of using Edwin; it will save you time later. To start Edwin, go to the Windows Start menu, and select: Programs, MIT Scheme, Edwin. This will bring up the Edwin editor. Type in one of the previous hello world forms. Then, with the cursor at the end of the form, use the keystroke combination ctrl-x ctrl-e to evaluate the form. Note that in the Scheme editor, forms are not evaluated automatically. Now, let's write a Scheme program and save it in a file. First, to get a new buffer, do ctrl-x ctrl-f Edwin will prompt you for a path. Enter an appropriate path for your directory, and end it with the file name HelloWorld.scm. Scheme will indicate that this is a new file. Now, enter one of the previous hello world forms into the new buffer. When done, do ctrl-x ctrl-s This saves the file. Next, do ctrl-x b This switches you back to the Edwin Scheme interpreter. Load the file HelloWorld.scm into the interpreter by doing (load [path]) where [path] is the path for the HelloWorld.scm file. Then do ctrl-x ctrl-e to evaluate. Note that the result is the same as when this was typed in directly to the interpreter. Leave Edwin by doing ctrl-x ctrl-c
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 麻省理工学院:《自制决策制造原则》英文版 Introduction to Principles of Autonomy and Decision Making.pdf
- 《卫星工程》英文版 23 thermalcontro.pdf
- 《卫星工程》英文版 24 groundsysdes.pdf
- 《卫星工程》英文版 22 reentry.pdf
- 《卫星工程》英文版 21 satelitecomm2 done.pdf
- 《卫星工程》英文版 20 satellitettc.pdf
- 《卫星工程》英文版 19 scraftcompsys.pdf
- 《卫星工程》英文版 18 autonomy lec.pdf
- 《卫星工程》英文版 17 software eng.pdf
- 《卫星工程》英文版 15 costmodellec.pdf
- 《卫星工程》英文版 11 imaging.pdf
- 《卫星工程》英文版 14 structures.pdf
- 《卫星工程》英文版 16 software.pdf
- 《Computational Geometry》lecnotes20 Dr. K. H. Ko Prof. N. M. Patrikalakis.pdf
- 《Computational Geometry》lecnotes 19 Prof. N.m. Patrikalakis.pdf
- 《Computational Geometry》lecnotes 23 Dr. W. Cho Prof. N.m. Patrikalakis.pdf
- 《Computational Geometry》lecnotes 21 Prof, i .k. atkikalak.pdf
- 《Computational Geometry》lecnotes 8 N.M. Patrikalakis.pdf
- 《Computational Geometry》lecnotes 13 N. M. Patrikalakis.pdf
- 《Computational Geometry》lecnotes 14 and 15 N. M. Patrikalakis.pdf
- 麻省理工学院:《自制决策制造原则》英文版 Problem Solving as State Space Search.pdf
- 麻省理工学院:《自制决策制造原则》英文版 Elements of Algorithmic analysis.pdf
- 麻省理工学院:《自制决策制造原则》英文版 Some scheme.pdf
- 麻省理工学院:《自制决策制造原则》英文版 Rules on NEAr and messenger.pdf
- 麻省理工学院:《自制决策制造原则》英文版 Constraint Satisfaction Problems: Formulation.pdf
- 麻省理工学院:《自制决策制造原则》英文版 Pairs. Lists.pdf
- 麻省理工学院:《自制决策制造原则》英文版 Even more scheme.pdf
- 麻省理工学院:《自制决策制造原则》英文版 Graph-based Planning.pdf
- 麻省理工学院:《自制决策制造原则》英文版 Propositional Logic.pdf
- 麻省理工学院:《自制决策制造原则》英文版 Partial Order Planning and execution.pdf
- 麻省理工学院:《自制决策制造原则》英文版 Solving constraint satisfaction Problems.pdf
- 麻省理工学院:《自制决策制造原则》英文版 Solving Constraint Satisfaction Problems Forward Checking.pdf
- 麻省理工学院:《自制决策制造原则》英文版 Programming SATPlan.pdf
- 麻省理工学院:《自制决策制造原则》英文版 Shortest path and Informed Search.pdf
- 麻省理工学院:《自制决策制造原则》英文版 Model-based Diagnosis.pdf
- 麻省理工学院:《自制决策制造原则》英文版 Roadmap path planning.pdf
- 麻省理工学院:《自制决策制造原则》英文版 Conflict-directed Diagnosis.pdf
- 麻省理工学院:《自制决策制造原则》英文版 Particle filters for Fun and profit.pdf
- 麻省理工学院:《自制决策制造原则》英文版 Courtesy of Sommer Gentry. Used with permission.pdf
- 麻省理工学院:《自制决策制造原则》英文版 Courtesy or Eric Feron and Sommer.pdf